Search found 318 matches

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

Re: Check if radio button is selected or not

I was hoping for some HTML tag value for checked radio button in a group
then it will be just one line instead of looping through radio buttons
by techimac
Tue Jan 23, 2018 11:27 pm
Forum: iMacros for Firefox
Topic: Check if radio button is selected or not
Replies: 12
Views: 7557

Re: Check if radio button is selected or not

TAG POS=1 TYPE=............ EXTRACT=CHECKED Well, then, if you don't know in advance which RB is checked, you simply need to extract them all and using 'EVAL()' + 'if/else' or 'CASE' to find out which one is selected, that's not very complicated... Or you store all YES/NO Values in a String or Arra...
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: 7557

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

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

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

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

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

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

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

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

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

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