October 2018
Intermediate to advanced
192 pages
5h 12m
English
A fluent wait is the implementation of the wait interface in which we can configure the timeout and the polling interval dynamically. As well as this, it enables us to add exception exclusions, such as the following example, where we ignore the NoSuchElement exception. Each instance of the fluent wait defines the timeout value and the polling time or interval. The polling interval states the frequency with which to check for the presence of the element under consideration.
Let's take the example HTML we created and try to find out whether we are able to locate the element under consideration using fluent wait, using the following code:
long startTime = 0L;long endTime = 0L;WebElement elem = null;boolean status = false;System.setProperty("webdriver.chrome.driver","C:\\SeleniumWD\\src\\main\\ ...Read now
Unlock full access