Class ElementUtils
- java.lang.Object
-
- com.atlassian.bamboo.pageobjects.utils.ElementUtils
-
public class ElementUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidrepeatUntilTrue(String msg, int count, long delayMs, Runnable repeatableAction, BooleanSupplier condition)Repeats an action few times and throws if the conditions is not fulfilledstatic voidwaitForDialogToDisappear(org.openqa.selenium.WebDriver driver)static <T> TwaitUntilAvailable(org.openqa.selenium.WebDriver driver, com.atlassian.pageobjects.PageBinder pageBinder, Class<T> clazz, String... args)static voidwaitUntilHidden(com.atlassian.pageobjects.elements.PageElement pageElement)static voidwaitUntilHidden(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.By elementSelector)static voidwaitUntilVisible(com.atlassian.pageobjects.elements.PageElement pageElement)static voidwaitUntilVisible(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.By elementSelector)
-
-
-
Method Detail
-
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
public static <T> T waitUntilAvailable(org.openqa.selenium.WebDriver driver, com.atlassian.pageobjects.PageBinder pageBinder, Class<T> clazz, String... args)
-
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
-
-