Search found 311 matches

by techimac
Tue Jan 23, 2018 12:21 am
Forum: iMacros for Firefox
Topic: Check if radio button is selected or not
Replies: 12
Views: 5720

Check if radio button is selected or not

how to check if any radio button from a group is selected or not?

example code

Code: Select all

<form>
	<p><input type="radio" name="R1" value="V1" ></p>
	<p><input type="radio" name="R1" value="V2"></p>
</form>
Firefox 47
iMacros 8.9.7
Windows 8.1
by techimac
Tue Oct 03, 2017 8:54 pm
Forum: iMacros for Firefox
Topic: Convert imacro code to javascript
Replies: 8
Views: 4575

Re: Convert imacro code to javascript

Javascript var macro; macro = "CODE:"; macro += "TAG XPATH=/*/Summary[1]/Payer EXTRACT=TXT" +"/n"; iimPlay(macro); Error : BadParameter: expected EXTRACT=TXT|TXTALL|HTM|TITLE|ALT|HREF|CHECKED as parameter 5, line 1 (Error code: -911)[/quote] no error for me with this code var macro; macro = "CODE:";...
by techimac
Mon Sep 25, 2017 11:28 pm
Forum: iMacros for Firefox
Topic: Call another script from running script, If condition help
Replies: 1
Views: 1196

Call another script from running script, If condition help

Is is possible to call .iim script from running .iim script?
Can anyone send example of if condition in .iim script?
I want to execute code only if condition is met.

Thanks
by techimac
Sat Sep 23, 2017 5:30 pm
Forum: iMacros for Firefox
Topic: Problem to fill a form with same IDs and dynamic CONTENT
Replies: 18
Views: 7672

Re: Problem to fill a form with same IDs and dynamic CONTENT

my code was also correct, I tested it
since questions order were changing every time url is opened
Thats why I used that logic
by techimac
Fri Sep 22, 2017 5:53 pm
Forum: iMacros for Firefox
Topic: Problem to fill a form with same IDs and dynamic CONTENT
Replies: 18
Views: 7672

Re: Problem to fill a form with same IDs and dynamic CONTENT

Manually open URL and wait for question to appear then run this script in loop of 5 SET !TIMEOUT_PAGE 1 SET !ERRORIGNORE YES TAG POS=1 TYPE=H1 ATTR=TXT:*Come<SP>si<SP>chiamano<SP>i<SP>Fanfoni TAG POS=R1 TYPE=INPUT:TEXT FORM=ID:questioncontainer ATTR=NAME:answer[] CONTENT=Blue TAG POS=1 TYPE=INPUT:SU...
by techimac
Fri Sep 22, 2017 4:30 pm
Forum: iMacros for Firefox
Topic: Problem to fill a form with same IDs and dynamic CONTENT
Replies: 18
Views: 7672

Re: Problem to fill a form with same IDs and dynamic CONTENT

Click question and then use relative positioning TAG command like this

TAG POS=R1 TYPE=INPUT:TEXT FORM=ID:container ATTR=NAME:answer[] CONTENT=<ANSWER>
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:container ATTR=*

TAG POS=R1
by techimac
Fri Sep 22, 2017 6:41 am
Forum: iMacros for Firefox
Topic: Problem to fill a form with same IDs and dynamic CONTENT
Replies: 18
Views: 7672

Re: javascript on imacros help

Code: Select all

SET !ERRORIGNORE NO
SET !TIMEOUT_PAGE 1
TAG POS=1 TYPE=H1 ATTR=TXT:*CHIAMO*
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:container ATTR=NAME:answer[] CONTENT=OK
SET !TIMEOUT_PAGE 20
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:container ATTR=*
if you have more things to do in same script then this logic won't work
by techimac
Mon Sep 18, 2017 7:57 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11249

Re: Loop Datasource

var Macro = ""; Macro += "CODE:" + "\n"; Macro += "SET !ERRORIGNORE YES" + "\n"; Macro += "SET !DATASOURCE homepage.csv" + "\n"; Macro += "SET !DATASOURCE_COLUMNS 1" + "\n"; Macro += "SET !DATASOURCE_LINE {{LOOPNUM}}" + "\n"; Macro += "SET !TIMEOUT_PAGE 60" + "\n"; Macro += "WAIT SECONDS = 800" + "...
by techimac
Mon Sep 18, 2017 10:16 am
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11249

Re: Loop Datasource

I have changed the code var Macro = ""; Macro += "CODE:" + "\n"; Macro += "SET !ERRORIGNORE YES" + "\n"; Macro += "SET !DATASOURCE homepage.csv" + "\n"; Macro += "SET !DATASOURCE_COLUMNS 1" + "\n"; Macro += "SET !DATASOURCE_LINE {{LOOPNUM}}" + "\n"; Macro += "SET !TIMEOUT_PAGE 60" + "\n"; Macro += "...
by techimac
Sun Sep 17, 2017 6:48 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11249

Re: Loop Datasource

send web page address
by techimac
Sun Sep 17, 2017 3:55 am
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11249

Re: Loop Datasource

I have fixed code syntax but it might not do what you are trying
once url opens what you want to do?
by techimac
Sun Sep 17, 2017 3:54 am
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11249

Re: Loop Datasource

var Macro1 = ""; Macro += "CODE:" + "\n"; Macro += "SET !ERRORIGNORE YES" + "\n"; Macro += "SET !DATASOURCE Shisha.csv" + "\n"; Macro += "SET !DATASOURCE_COLUMNS 1" + "\n"; Macro += "SET !DATASOURCE_LINE {{LOOPNUM}}" + "\n"; Macro += "SET !TIMEOUT_PAGE 60" + "\n"; Macro += "WAIT SECONDS = 800" + "\n...
by techimac
Sat Sep 16, 2017 5:04 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11249

Re: Loop Datasource

var Macro1 = "";
Macro += "CODE:" + "\n";
Macro += "SET !ERRORIGNORE YES" + "\n";
Macro += "SET !DATASOURCE Shisha.csv" + "\n";

you need to use Macro1in other lines as well