Is there a way to check that an element is visible?

Hi Guys,

I tried Element.isDisplayed( ) but instead of returning true or false, it gives org.openqa.selenium.NoSuchElementException. Is there a way to do that without catching the exception (Catching takes a lot of time).

Thank you

As per my knowledge, there is no check which returns bool. All returns exceptions.
I have implemented using catch only returning true if found, false is it goes to catch. It helps and not that time consuming.

1 Like