The iMacros TAG command is best replaced by re-recording the part in Ui.Vision, just as @newuserkantu said. Usually it gets replaced by CLICK and TYPE-. UiVision will find the correct locators for you.
For most other commands the iMacros commands table gives you a good alternative for each iMacros command.
For example, iMacros
SET !TIMEOUT_STEP 0
- is in Ui.Vision
Store | 0 | !TIMEOUT_WAIT
Another example: iMacros
TAB T=1
- is in Ui.Vision
selectWindow | TAB=1
TAG POS=1 TYPE=BUTTON FORM=ACTION:/Internal/Exam/Create ATTR=TXT:Bestil CONTENT=EVENT:FAIL_IF_FOUND
For iMacros’ FAIL_IF_FOUND I found that assertelementNOTpresent does the same in Ui.Vision.
Test macro:
{
"Name": "FAIL_IF_FOUND",
"CreationDate": "2023-3-27",
"Commands": [
{
"Command": "open",
"Target": "https://ui.vision/",
"Value": "",
"Description": ""
},
{
"Command": "assertElementPresent",
"Target": "xpath=//div/img",
"Value": "",
"Description": "Check that element is on page"
},
{
"Command": "assertElementNotPresent",
"Target": "xpath=//div/imgXXXXXX",
"Value": "",
"Description": "Same as EVENT:FAIL_IF_FOUND in iMacros - Check that element is NOT on page."
}
]
}