public final class WebDriverWaitUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
waitUntilAllElementsArePresent(String... locators)
Waits until both two elements appear at the page Waits until all the elements are present on the DOM of a page.
|
static void |
waitUntilElementIsClickable(MobileElement element)
Waits until element is cickable.
|
static void |
waitUntilElementIsClickable(String elementLocator)
Waits until element is cickable.
|
static void |
waitUntilElementIsInvisible(MobileElement element)
Waits until element is either invisible or not present on the DOM.
|
static void |
waitUntilElementIsInvisible(String elementLocator)
Waits until element is either invisible or not present on the DOM.
|
static void |
waitUntilElementIsPresent(MobileElement element)
Waits until element is present on the DOM of a page.
|
static void |
waitUntilElementIsPresent(String elementLocator)
Waits until element is present on the DOM of a page.
|
static void |
waitUntilElementIsVisible(MobileElement element)
Waits until element is present on the DOM of a page and visible.
|
static void |
waitUntilElementIsVisible(String elementLocator)
Waits until element is present on the DOM of a page and visible.
|
static void |
waitUntilPageIsValidated(WebPage pageObject)
Waits until all
pageValidators for a given object pass. |
static void |
waitUntilPageTitleContains(String pageTitle)
Waits until the current page's title contains a case-sensitive substring of the given title.
|
static void |
waitUntilTextPresent(String searchString)
Waits until text appears anywhere within the current page's <body> tag.
|
public static void waitUntilElementIsClickable(MobileElement element)
element
- element to be cickablepublic static void waitUntilElementIsClickable(String elementLocator)
elementLocator
- identifier of element to be cickablepublic static void waitUntilElementIsInvisible(MobileElement element)
element
- element to be foundpublic static void waitUntilElementIsInvisible(String elementLocator)
elementLocator
- identifier of element to be foundpublic static void waitUntilElementIsPresent(MobileElement element)
element
- element to be foundpublic static void waitUntilElementIsPresent(String elementLocator)
elementLocator
- identifier of element to be foundpublic static void waitUntilElementIsVisible(MobileElement element)
element
- element to be visiblepublic static void waitUntilElementIsVisible(String elementLocator)
elementLocator
- identifier of element to be visiblepublic static void waitUntilPageTitleContains(String pageTitle)
pageTitle
- title of page expected to appearpublic static void waitUntilTextPresent(String searchString)
searchString
- text will be waited forpublic static void waitUntilAllElementsArePresent(String... locators)
locators
- an array of strings that represents the list of elements to check.public static void waitUntilPageIsValidated(WebPage pageObject)
pageValidators
for a given object pass. The WebPage
instance must express
something that validates the page or calling this will cause a wait timeout.pageObject
- a WebPage
instance.Copyright © 2016 PayPal Open Source. All rights reserved.