If the website does not load, the OPEN command times out. You can catch this error and log it.
(That said, I noticed a bug in V5.01. OPEN fails if no website is loaded in the tab. We will fix this ASAP. => Fixed in V5.0.3)
Here is how it will work once the bug is fixed (it works now, but only until a not-loading website is reached).
{
"Name": "checkwebsite",
"CreationDate": "2019-6-4",
"Commands": [
{
"Command": "open",
"Target": "https://ui.vision/",
"Value": ""
},
{
"Command": "store",
"Target": "true",
"Value": "!errorignore"
},
{
"Command": "store",
"Target": "10",
"Value": "!timeout_pageload"
},
{
"Command": "open",
"Target": "https://xxxxxxxxforum.ui.vision/",
"Value": ""
},
{
"Command": "store",
"Target": "false",
"Value": "!errorignore"
},
{
"Command": "store",
"Target": "60",
"Value": "!timeout_pageload"
},
{
"Command": "if_v2",
"Target": "${!statusOK} == false",
"Value": ""
},
{
"Command": "throwError",
"Target": "Website did not load",
"Value": ""
},
{
"Command": "end",
"Target": "",
"Value": ""
}
]
}