Hello!
I have a button in a webpage which is not always there. I want to click it if it’s there. If the button is absent, I want to keep the test running.
I tried using VerifyElementIsVisible and such but they wait a while before continuing.
Currently I use FailureHandling.Optional on Click action but I would like to know a better method to do it, preferable one that doesn’t wait before executing rest of the code.
But testing visibility on one object takes time, specially if he’s not there. Correct me if I’m wrong, but there’s no timeout on Check for visibility. I would like to have a 1 sec timeout or so.
Ok, I guess i’ll use Wait for Element Visible with a really short timeout because VerifyElementIsVisible doesn’t have timeout. It’s just a bit counter intuitive.