In this tutorial, we will learn how to check the state of a WebElement. Many a time a test fails when we click on an element or enter text in a field. This is because the element is displayed or exist in DOM, but it does not exist on the web page. The r