thread hijack, sorry,
my script sometimes does the same thing, it performs the “open” command, then once the page is loaded its as if the page refreshes, this loop continues, i assume indefinitely, until i manually stop the macro.
after manually stopping the macro the log only shows the “open” command run once and nothing else comes after except “macro manually stopped”
{
"Name": "script name",
"CreationDate": "2019-1-14",
"Commands": [
{
"Command": "bringBrowserToForeground",
"Target": "",
"Value": ""
},
{
"Command": "store",
"Target": "99999999",
"Value": "!TIMEOUT_MACRO"
},
{
"Command": "store",
"Target": "2",
"Value": "!timeout_wait"
},
{
"Command": "store",
"Target": "fast",
"Value": "!replayspeed"
},
{
"Command": "store",
"Target": "TRUE",
"Value": "!ErrorIgnore"
},
{
"Command": "store",
"Target": "true",
"Value": "!statusOK"
},
{
"Command": "selectWindow",
"Target": "title=My Window",
"Value": ""
},
{
"Command": "gotoIf",
"Target": "${!statusOK}",
"Value": "Login"
},
{
"Command": "store",
"Target": "true",
"Value": "!statusOK"
},
{
"Command": "label",
"Target": "Start",
"Value": ""
},
{
"Command": "open",
"Target": "www.website.com",
"Value": ""
},
{
"Command": "label",
"Target": "Login",
"Value": ""
},
{
"Command": "store",
"Target": "true",
"Value": "!statusOK"
},
{
"Command": "type",
"Target": "id=login-name",
"Value": ""
},
{
"Command": "gotoIf",
"Target": "!${!statusOK}",
"Value": "PTA and Profile"
},
{
"Command": "type",
"Target": "id=login-password",
"Value": ""
},
{
"Command": "click",
"Target": "id=login-login-btn",
"Value": ""
},
{
"Command": "label",
"Target": "PTA and Profile",
"Value": ""
},
{
"Command": "store",
"Target": "true",
"Value": "!statusOK"
},
{
"Command": "waitForVisible",
"Target": "id=pta-close",
"Value": "60"
},
{
"Command": "storeEval",
"Target": "document.getElementById(\"pta-close\").click();",
"Value": ""
},
{
"Command": "label",
"Target": "wait for error",
"Value": ""
},
{
"Command": "store",
"Target": "true",
"Value": "!statusOK"
},
{
"Command": "verifyElementPresent",
"Target": "css=[id*='error-dialog']",
"Value": ""
},
{
"Command": "gotoIf",
"Target": "!${!statusOK}",
"Value": "wait for error"
},
{
"Command": "echo",
"Target": "element found!",
"Value": "green"
},
{
"Command": "storeEval",
"Target": "window.onbeforeunload = null;",
"Value": ""
},
{
"Command": "click",
"Target": "css=[class*='ui-button-text']",
"Value": "OK"
},
{
"Command": "gotoLabel",
"Target": "Login",
"Value": ""
}
]
}
Playing macro script name
Executing: | bringBrowserToForeground | | |
Executing: | store | 99999999 | !TIMEOUT_MACRO |
Executing: | store | 2 | !timeout_wait |
Executing: | store | fast | !replayspeed |
Executing: | store | TRUE | !ErrorIgnore |
Executing: | store | true | !statusOK |
Executing: | selectWindow | title=My Window | |
failed to find the tab with locator ‘title=My Window’
Executing: | gotoIf | ${!statusOK} | Login |
Executing: | store | true | !statusOK |
Executing: | label | Start | |
Executing: | open | www.website.com | |
Macro was stopped manually (Runtime 15.73s)