checkbox value

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Posts: 77
Joined: Tue Apr 29, 2008 6:50 pm

checkbox value

Post by shaves » Wed Oct 08, 2008 6:57 pm

I would like to retrieve the value from a checkbox (to determine whether or not it has been checked. I am using the code below and it returns "null" for both checkboxes even though one is checked and the other isn't.

MyMacroCode = "CODE:"
MyMacroCode = MyMacroCode + "VERSION BUILD=6140505" + vbNewLine
MyMacroCode = MyMacroCode + "TAB T=1" + vbNewLine
MyMacroCode = MyMacroCode + "TAB CLOSEALLOTHERS" + vbNewLine
MyMacroCode = MyMacroCode + "FRAME F=3" + vbNewLine
MyMacroCode = MyMacroCode + "TAG POS=1 TYPE=INPUT ATTR=NAME:rateSourceName&&VALUE:*&&NAME:rateSourceName EXTRACT=TXT" + vbNewLine
MyMacroCode = MyMacroCode + "TAG POS=1 TYPE=INPUT ATTR=NAME:prePaidFuelCheckbox&&VALUE:null&&NAME:prePaidFuelCheckbox EXTRACT=TXT" + vbNewLine
MyMacroCode = MyMacroCode + "TAG POS=1 TYPE=INPUT ATTR=NAME:airportRentalCheckbox&&VALUE:null&&NAME:airportRentalCheckbox EXTRACT=TXT" + vbNewLine

Any suggestions to get the value of each checkbox would be greatly appreciated. Thanks for the help....
User avatar
Tech Support
Posts: 4947
Joined: Tue Sep 20, 2005 7:25 pm

Re: checkbox value

Post by Tech Support » Thu Oct 09, 2008 8:23 pm


See also (last option in the list)
Posts: 12
Joined: Fri Apr 17, 2009 2:09 pm

Re: checkbox value

Post by udovcic » Wed Oct 06, 2010 11:52 am


How can you fail a test depending on the value of the checkbox?


If you expect that the checkbox should be checked, and its not, the test should fail.

Best regards
Josip Udovcic
Post Reply