public void waitForElementToBeVisible ( final By by , final int maximumSeconds ) { WebDriverWait wait = new WebDriverWait ( driver , maximumSeconds ) ; wait . until ( ExpectedConditions . visibilityOfElementLocated ( by ) ) ; }
Waits until a WebElement will be displayed into the page .