Explain retry with example


Suppose you have used element exists, and you doesn’t know how much time it take to load and go to the next page and if you are not sure how much time the page takes to load and your element exists might fail, and if you dont want that , then you can use retry scope and “in condition” you can specify element exists and you have a property called number of retries, there you can mention number of retries, so basically your element exists tried to find the element for 30sec, now because you have kept your element exists in retry scope, it will check the amount of times you have specified in number of retries.

Refer the below post

1 Like