Class ElementUtils


  • public class ElementUtils
    extends Object
    • 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 message
        count - tries number
        delayMs - delay between action and condition check
        repeatableAction - the action
        condition - the condition