public static void waitUntilAllElementsArePresent ( final String ... locators ) { logger . entering ( new Object [ ] { Arrays . toString ( locators ) } ) ; Preconditions . checkArgument ( locators != null , "Please provide a valid set of locators." ) ; for ( String eachLocator : locators ) { waitUntilElementIsPresent ( eachLocator ) ; } logger . exiting ( ) ; }
Waits until both two elements appear at the page Waits until all the elements are present on the DOM of a page . This does not necessarily mean that the element is visible .