public void waitForElementPresent ( final By by , final int maximumSeconds ) { WebDriverWait wait = new WebDriverWait ( driver , maximumSeconds ) ; wait . until ( ExpectedConditions . presenceOfElementLocated ( ( by ) ) ) ; }
Waits until an element will be displayed into the page .