Handle the NoSuchElementException in Fluent Wait
问题 I know that in terms of waiting for web element that isn't in the DOM yet, the most efficient is a fluent wait. So my question is: Is there a way to handle and catch the NoSuchElementException or any exception that fluent wait might throw because the element is not existing? I need to have a boolean method wherein it will give me result whether the element is found or not. This method is quite popular on the web. public void waitForElement(WebDriver driver, final By locator){ Wait<WebDriver>