Class ElementUtils
java.lang.Object
com.atlassian.bamboo.pageobjects.utils.ElementUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
repeatUntilTrue
(String msg, int count, long delayMs, Runnable repeatableAction, BooleanSupplier condition) Repeats an action few times and throws if the conditions is not fulfilledstatic void
waitForDialogToDisappear
(org.openqa.selenium.WebDriver driver) static <T> T
waitUntilAvailable
(org.openqa.selenium.WebDriver driver, com.atlassian.pageobjects.PageBinder pageBinder, Class<T> clazz, String... args) static void
waitUntilHidden
(com.atlassian.pageobjects.elements.PageElement pageElement) static void
waitUntilHidden
(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.By elementSelector) static void
waitUntilVisible
(com.atlassian.pageobjects.elements.PageElement pageElement) static void
waitUntilVisible
(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.By elementSelector)
-
Method Details
-
waitUntilVisible
public static void waitUntilVisible(com.atlassian.pageobjects.elements.PageElement pageElement) -
waitUntilHidden
public static void waitUntilHidden(com.atlassian.pageobjects.elements.PageElement pageElement) -
waitUntilVisible
public static void waitUntilVisible(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.By elementSelector) -
waitUntilHidden
public static void waitUntilHidden(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.By elementSelector) -
waitUntilAvailable
-
waitForDialogToDisappear
public static void waitForDialogToDisappear(org.openqa.selenium.WebDriver driver) -
repeatUntilTrue
public static void repeatUntilTrue(String msg, int count, long delayMs, Runnable repeatableAction, BooleanSupplier condition) Repeats an action few times and throws if the conditions is not fulfilled- Parameters:
msg
- error messagecount
- tries numberdelayMs
- delay between action and condition checkrepeatableAction
- the actioncondition
- the condition
-