Webdriver FluentWait

public Wait wait; WebDriver driver = new FirefoxDriver(); wait = new FluentWait(driver) .withTimeout(360, TimeUnit.SECONDS) .pollingEvery(5, TimeUnit.SECONDS) .ignoring(NoSuchElementException.class); public WebElement fluentWait(final By locator) { WebElement foo = wait.until( new Function() { public WebElement apply(WebDriver driver) { return driver.findElement(locator); } } ); return foo; } public WebElement webElement(final By by) { return wait.until(ExpectedConditions.presenceOfElementLocated(by)); } public WebElement webElementVisible(final […]