For example, If a page loads up and when I click a button. A page will not open in new tab and sometime this new tab is taking time to get load fully. I need to check and wait till this page loads but without using Wait for element appears property and Delay. Is there any other approach for this
@jagravi.trivedi You can Use Element Exist".
You can make dynamic delay by using Element Exist.
Use Element Exist and Put bool Variable in it.
After this put while loop and give that bool variable in Condition as Not IsElementExist
inside loop put 5 second delay.
after this again check Element Exist and give same variable which you gave in while condition
Why don’t you want to use that? It’s literally the point of it. Although the modern Check App State is a better way to go.
Ok. But In this also We need to use the property “Element Exist”. Is there any other way where we are not using this property
and Still we can create dynamic delay - it will wait till page loads or it will re attempt to click the button
@jagravi.trivedi Element Exist is Activity not property and it return bool response It waits till timeout of activity
Increase the timeout of your click activity and change the option to wait for load complete…
And for retry use it inside a retry scope activity
Ideally for retry you have to add it
Cheers
You can, instead of waiting for the page to load, wait for some text to appear on the page, something like that can help you.