Really pulling my hair out with this one. Maybe my old age is starting to kick in but I just can't seem to figure it out.
I have a website that has a checkbox to enable/disable something.
What I want to do is setup an iMacros script that will load up the page on the site which I can do no problem, and then check if the checkbox is ticked or not.
If the checkbox is unticked then I want it to enable it, if it is unchecked then I just want the script to end and not do anything.
This is what I've made so far:
Code: Select all
VERSION BUILD=9030808 RECORDER=FX TAB T=1 URL GOTO=https://url.com/etc TAG POS=1 TYPE=INPUT:EMAIL FORM=ID:login-hidden ATTR=ID:email CONTENTemail@example.com SET !ENCRYPTION NO TAG POS=1 TYPE=INPUT:PASSWORD FORM=ID:login-hidden ATTR=ID:password CONTENT=password WAIT SECONDS=5 TAG POS=15 TYPE=DIV ATTR=TXT: TAG POS=16 TYPE=DIV ATTR=CLASS:icon&&TXT: TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:settings_switch_0 EXTRACT=CHECKED
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:settings_switch_0 CONTENT=YES
So therefore if the checkbox is already ticked it appears to uncheck it, hence why I need to put this check in place because I just want it to check if already unchecked.
This is using iMacros for Firefox 8.97 with Firefox 47.