public static void waitUntilElementIsPresent ( final String elementLocator ) { logger . entering ( elementLocator ) ; By by = HtmlElementUtils . resolveByType ( elementLocator ) ; ExpectedCondition < WebElement > condition = ExpectedConditions . presenceOfElementLocated ( by ) ; waitForCondition ( condition ) ; logger . exiting ( ) ; }
Waits until element is present on the DOM of a page . This does not necessarily mean that the element is visible .