Start Macro command after site loaded completed searching a good solution

Hi

I seach an efficient solution to start macro command after site loaded completely.

I use this command in Kantu waitForPageToLoad but sometimes the macro commands start during the site loading.

https://a9t9.com/kantu/docs/selenium-ide/waitforpagetoload

What is the best solution to start macro only after the site loaded completely ?

I’m triing to use 3 times consecutively the command waitForPageToLoad because some element in the site internet can loaded after a delay (iframe, hidden part, javascript elements).

{
“Command”: “waitForPageToLoad”,
“Target”: “60000”,
“Value”: “”
},
{
“Command”: “pause”,
“Target”: “5000”,
“Value”: “”
},
{
“Command”: “waitForPageToLoad”,
“Target”: “60000”,
“Value”: “”
},
{
“Command”: “pause”,
“Target”: “5000”,
“Value”: “”
},
{
“Command”: “waitForPageToLoad”,
“Target”: “60000”,
“Value”: “”
},
{
“Command”: “pause”,
“Target”: “5000”,
“Value”: “”
}

do you know a better and more efficient solution?

Thanks

Have a nice day

What is the best solution to start macro only after the site loaded completely ?

What we use often is visualAssert | image.jpg

This command waits until “image.jpg” is loaded and visible. The image can be a screenshot of any part of the web page. Something that you yourself would use to visually check if a web page is loaded completed.

1 Like

Thanks @C.J for suggestion

Have a nice day