Search found 300 matches

by techimac
Tue Jan 23, 2018 9:49 pm
Forum: iMacros for Firefox
Topic: Check if radio button is selected or not
Replies: 12
Views: 5499

Re: Check if radio button is selected or not

TAG POS=1 TYPE=............ EXTRACT=CHECKED

"YES" if checked and "NO" if not checked
by techimac
Tue Jan 23, 2018 8:48 pm
Forum: iMacros for Firefox
Topic: Check if radio button is selected or not
Replies: 12
Views: 5499

Re: Check if radio button is selected or not

I can give you code for checking single radio button state
by techimac
Tue Jan 23, 2018 8:47 pm
Forum: iMacros for Firefox
Topic: Check if radio button is selected or not
Replies: 12
Views: 5499

Re: Check if radio button is selected or not

ATTR=CHECKED:CHECKED EXTRACT=TXT
element was not available
once I have the solution or found proper HTML code to find solution, I will share
by techimac
Tue Jan 23, 2018 6:51 am
Forum: iMacros for Firefox
Topic: Check if radio button is selected or not
Replies: 12
Views: 5499

Re: Check if radio button is selected or not

I got the solution for checking particular radio button
need a way to find if any radio button is selected or not in a group

I tried ATTR=CHECKED:CHECKED EXTRACT=TXT
but it didn't worked.
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: 5499

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: 4457

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: 1149

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: 7512

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: 7512

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: 7512

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: 7512

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: 11011

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: 11011

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 += "...