Search found 318 matches

by techimac
Mon May 01, 2017 5:36 am
Forum: Command Line and Scripting Interface
Topic: Need help to fix code syntax
Replies: 0
Views: 2967

Need help to fix code syntax

Please fix the syntax in following 2 lines

Code: Select all

ClickConnect += "SET !EXTRACT EVAL(\"\"{{!EXTRACT}}\".replace(/^\s*|\s*$/g, \"\");\")" + "\n";
ClickConnect += "SET !EXTRACT EVAL(\"var s=\"{{!EXTRACT}}\"; s.split(\" \", 1);\")" + "\n";
Thanks
by techimac
Thu Mar 23, 2017 6:48 am
Forum: iMacros for Firefox
Topic: Input text in dynamic element name text field
Replies: 18
Views: 10857

Re: Input text in dynamic element name text field

didn't got double quotes thats why using it
by techimac
Thu Mar 23, 2017 6:32 am
Forum: iMacros for Firefox
Topic: Input text in dynamic element name text field
Replies: 18
Views: 10857

Re: Input text in dynamic element name text field

Code: Select all

EVENTS TYPE=KEYPRESS SELECTOR="#{{!var1}}" CHARS="mex"
this is working now
by techimac
Thu Mar 23, 2017 6:28 am
Forum: iMacros for Firefox
Topic: Input text in dynamic element name text field
Replies: 18
Views: 10857

Re: Input text in dynamic element name text field

I got this

<input id="from0-ad9ea946" class="FlightSearchForm__from FlightSearchForm__autocomplete-input FlightSearchForm__primary App__input" autocomplete="off" autocorrect="off" spellcheck="off" placeholder="From: City or Airport" name="from0" style="outline: 1px solid blue;" type="text">
by techimac
Thu Mar 23, 2017 5:18 am
Forum: iMacros for Firefox
Topic: Input text in dynamic element name text field
Replies: 18
Views: 10857

Re: Input text in dynamic element name text field

CHARS, EVENTS not working
by techimac
Thu Mar 23, 2017 5:17 am
Forum: iMacros for Firefox
Topic: Input text in dynamic element name text field
Replies: 18
Views: 10857

Re: Input text in dynamic element name text field

chivracq wrote:
techimac wrote:its only inputting one character
Yours or mine...?
Mine should work..., for yours, it's maybe related to "CHAR" <> "CHARS"...
mine
so I might have to split in 3 lines
by techimac
Wed Mar 22, 2017 8:51 pm
Forum: iMacros for Firefox
Topic: Input text in dynamic element name text field
Replies: 18
Views: 10857

Re: Input text in dynamic element name text field

its only inputting one character
by techimac
Wed Mar 22, 2017 8:33 pm
Forum: iMacros for Firefox
Topic: Input text in dynamic element name text field
Replies: 18
Views: 10857

Re: Input text in dynamic element name text field

Code: Select all

TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:NoFormName ATTR=ID:from0-* EXTRACT=HTM
SET !VAR1 EVAL("var s=\"{{!EXTRACT}}\"; s.replace(\"<input id=\",\"\");")
SET !VAR1 EVAL("var s=\"{{!VAR1}}\"; s.split(\" \", 1);")
EVENT TYPE=KEYPRESS SELECTOR="#{{!var1}}" CHAR="mex"
it's only typing 'm' not 'ex'
by techimac
Wed Mar 22, 2017 8:30 pm
Forum: iMacros for Firefox
Topic: Input text in dynamic element name text field
Replies: 18
Views: 10857

Re: Input text in dynamic element name text field

I didnt read your reply and tried something what you said
You actually need the Extract on 'POS=2' and not 'POS=1', I notice...
by techimac
Wed Mar 22, 2017 8:27 pm
Forum: iMacros for Firefox
Topic: Input text in dynamic element name text field
Replies: 18
Views: 10857

Re: Input text in dynamic element name text field

I have got it working but there is a problem do normal recording and see element name and then extract htm and see both element name are different TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:NoFormName ATTR=ID:from0-* EXTRACT=HTM SET !VAR1 EVAL("var s=\"{{!EXTRACT}}\"; s.replace(\"<input id=\",\"\");") prom...
by techimac
Wed Mar 22, 2017 7:54 pm
Forum: iMacros for Firefox
Topic: Input text in dynamic element name text field
Replies: 18
Views: 10857

Re: Input text in dynamic element name text field

EVENTS TYPE=KEYPRESS SELECTOR="#{{From_ID}}" CHARS="mex"
Let me try this first and then work on extracting the element name

if I use normal mode then after entering "mex"I dont get options, so have to use EVENT mode.
by techimac
Wed Mar 22, 2017 5:32 pm
Forum: iMacros for Firefox
Topic: Input text in dynamic element name text field
Replies: 18
Views: 10857

Re: Input text in dynamic element name text field

I am using javascript
so if I get element name, how to use in EVENT Mode command?
by techimac
Wed Mar 22, 2017 8:57 am
Forum: iMacros for Firefox
Topic: Input text in dynamic element name text field
Replies: 18
Views: 10857

Input text in dynamic element name text field

https://www.hipmunk.com/
Element name changes in from text box field
normal mode doesn't show options after entering text for example "mex"
event mode doesn't accept wildcard in element name

Please suggest what to do.
Thanks

VERSION BUILD=8970419
Windows 8.1
Firefox 52.0.1
by techimac
Sat Nov 19, 2016 4:27 pm
Forum: iMacros for Firefox
Topic: Is "hover" possible to emulate?
Replies: 3
Views: 1736

Re: Is "hover" possible to emulate?

TAG command............... CONTENT=EVENT:MOUSEOVER

I found this here
http://stackoverflow.com/questions/1552 ... th-imacros

Can you share web page?