Windows 10 Pro
iMacros Browser V12.0.501.6698
iMacros BUILD=12.0.501.6698
I have a check box and I am trying to select the check box if it is not selected.
To start out I have seen this thread https://forum.imacros.net/viewtopic.php?t=27248
and I have the main concept down I just cannot get the EXTRACT to return a YES or NO.
Here is my code using regular record:
Code: Select all
VERSION BUILD=12.0.501.6698
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=https://www.b50first.com/prod/login_app.aspx
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:tbCompany CONTENT=xx
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:tbUser CONTENT=xx
TAG POS=1 TYPE=INPUT:PASSWORD ATTR=NAME:tbPassword CONTENT=xx
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=NAME:bLogin
TAG POS=1 TYPE=SPAN ATTR=TXT:Reports
TAG POS=1 TYPE=SPAN ATTR=TXT:GL<SP>Account<SP>Balances
'New tab opened
TAB T=2
TAG POS=1 TYPE=SPAN ATTR=ID:ctl00_cph_ctl02_MainLocTree_tree_SelAll_D 'This line selects check box
Code: Select all
TAG POS=1 TYPE=SPAN FORM=NAME:aspnetForm ATTR=ID:ctl00_cph_ctl02_MainLocTree_tree_SelAll_D&&CLASS:dxWeb_edtCheckBoxUnchecked_1<SP>dxICheckBox_1 'Unchecked Box
TAG POS=1 TYPE=SPAN FORM=NAME:aspnetForm ATTR=ID:ctl00_cph_ctl02_MainLocTree_tree_SelAll_D&&CLASS:dxWeb_edtCheckBoxChecked_1<SP>dxICheckBox_1 'Checked Box
Code: Select all
TAG POS=1 TYPE=SPAN FORM=NAME:aspnetForm ATTR=ID:ctl00_cph_ctl02_MainLocTree_tree_SelAll_D EXTRACT=CHECKED
Code: Select all
TAG POS=1 TYPE=HIDDEN FORM=NAME:aspnetForm ATTR=ID:ctl00_cph_ctl02_MainLocTree_tree_SelAll_D EXTRACT=CHECKED
Additionally here is the HTML from the website that selects the checkbox (I think):
Code: Select all
<input type="hidden" name="ctl00$cph$ctl02$MainLocTree$tree$STATE" id="ctl00_cph_ctl02_MainLocTree_tree_STATE" value="Y2dkZ2ACYQYQUChyYGdkYmT7/5+dgZ2V/Q2Q5AIKs3MzsRoZWhgbQygTCGUKpIxMLMwglDmQMjE0AMlZWpiZQShzCGUBoiwNTSGUGdBUNiY2v/yUVE8XdiaegMSi1LwSGJfNvaggPsCbmYnNJz8ZzOAASYWkVpSwg8X8korY2RkA">
Any advise on why it isn't finding the checkbox?
Thanks!