Windows 7
Chrome 91.0.4472.114
Hello, this is my first time creating a topic in this forum, i hope the information i provided is enough, well, my problem is quite simple: on one page there is an "A" button (I'll call it that for better understanding), and when I click on it another button appears that may contain the text "1" or "2", if the number "1" appears, click the "A" button again until the number "2" appears, when the number "2" appears , after clicking on it will open another page with a button numbered "3", after clicking on the button numbered "3" it will reload the page to check if the button "3" was actually clicked (sometimes the page with the button " 3" does not count the click), if it was not clicked, it will reload again and click the "3" button until the page counts the click, and this is my problem, if it were in javascript it would be easy to solve with "if" and "else ", but on iMacros I have no idea how to do this and if it's possible to do it. (Sorry for errors, my english is very bad so i used Google Translate)
Code: Select all
Wait seconds=2
TAB T=1
//when click on this button another button appears on the page which can be number "1" or number "2"
TAG POS=1 TYPE=BUTTON ATTR=TXT:A
Wait seconds=1
//if the number "1" appears I want to click again on the "A" button until the number "2" appears
TAG POS=1 TYPE=BUTTON ATTR=TXT:1
//if number "2" appears, when click on this button another page will open with a button number "3"
TAG POS=1 TYPE=BUTTON ATTR=TXT:2
Wait seconds=3
TAB T=2
//when click on button "3" i will reload the page to see if it was clicked
TAG POS=1 TYPE=BUTTON ATTR=TXT:3
Wait seconds=1
//if after reloading the page button "3" was not clicked, it will be in a loop between reloading and clicking until confirming that it was clicked
REFRESH
Wait seconds=5
TAB T=1
TAB CLOSEALLOTHERS