In many selenium test cases you need to use WebDriverWait class. For example when you need to check whether a web element is visible or not, clickable or not, enabled or disabled before perform any actions. This article will show you how to use WebDriverWait class to achieve above tasks with examples.
When you run selenium test scripts, you may encounter “No Such Element Exception”, “Element Not Found Exception” or “Stale Element Reference Exception”. Some times it is because of the web page element which need to be used is not loaded completely. In selenium, there has below two method to resolve these kind of issues.