I need a solution to verifyElementPresent for 5 times only, after the macro must continue with another command.
I write a code with verifyElementPresent forever but i need to limite it to 5 times and after i need to refresh the page (to prevent partial loading of page)
This is the code, but in case the page do not load it remain forever to check, i need to limite this checking to 5 times and after refresh the page.
This macro check an element after login, after login the site load 30 seconds, if do not appears the page it’s recheck 5 times, after 5 times where the element not found i add a refresh of the page (probably page not load correct)
I search a good solution to manage the not load page cases.
If a page not load or load partial what is the best solution to bypass this case ?