Class AbstractPageObject

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static long DEFAULT_TIMEOUT  
      protected org.openqa.selenium.WebDriver driver  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractPageObject​(org.openqa.selenium.WebDriver driver)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doWithoutImplicitWait​(java.lang.Runnable runnable)  
      <T> T doWithoutImplicitWait​(java.util.concurrent.Callable<T> runnable)  
      java.util.List<org.openqa.selenium.WebElement> findAllBy​(org.openqa.selenium.By by)  
      java.util.List<org.openqa.selenium.WebElement> findAllBy​(org.openqa.selenium.By by, long timeout)  
      org.openqa.selenium.WebElement findBy​(org.openqa.selenium.By by)  
      org.openqa.selenium.WebElement findBy​(org.openqa.selenium.By by, long timeout)  
      org.openqa.selenium.WebDriver getDriver()  
      JSWaiter getJSWaiter()  
      void safeClick​(org.openqa.selenium.By by)  
      void safeClick​(org.openqa.selenium.By by, long timeout)  
      void safeJavascriptClick​(org.openqa.selenium.By by)  
      void safeJavascriptClick​(org.openqa.selenium.By by, long timeout)  
      void safeSendKeys​(org.openqa.selenium.By by, java.lang.String keys)  
      void safeSendKeys​(org.openqa.selenium.By by, java.lang.String keys, long timeout)  
      void safeWait​(java.util.function.Supplier<java.lang.Boolean> condition)  
      void safeWait​(java.util.function.Supplier<java.lang.Boolean> condition, long timeout)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • driver

        protected org.openqa.selenium.WebDriver driver
      • DEFAULT_TIMEOUT

        protected static long DEFAULT_TIMEOUT
    • Constructor Detail

      • AbstractPageObject

        public AbstractPageObject​(org.openqa.selenium.WebDriver driver)
    • Method Detail

      • getDriver

        public org.openqa.selenium.WebDriver getDriver()
      • getJSWaiter

        public JSWaiter getJSWaiter()
      • findBy

        public org.openqa.selenium.WebElement findBy​(org.openqa.selenium.By by,
                                                     long timeout)
      • findBy

        public org.openqa.selenium.WebElement findBy​(org.openqa.selenium.By by)
      • findAllBy

        public java.util.List<org.openqa.selenium.WebElement> findAllBy​(org.openqa.selenium.By by,
                                                                        long timeout)
      • findAllBy

        public java.util.List<org.openqa.selenium.WebElement> findAllBy​(org.openqa.selenium.By by)
      • safeWait

        public void safeWait​(java.util.function.Supplier<java.lang.Boolean> condition,
                             long timeout)
      • safeWait

        public void safeWait​(java.util.function.Supplier<java.lang.Boolean> condition)
      • safeJavascriptClick

        public void safeJavascriptClick​(org.openqa.selenium.By by)
      • safeJavascriptClick

        public void safeJavascriptClick​(org.openqa.selenium.By by,
                                        long timeout)
      • safeClick

        public void safeClick​(org.openqa.selenium.By by)
      • safeClick

        public void safeClick​(org.openqa.selenium.By by,
                              long timeout)
      • safeSendKeys

        public void safeSendKeys​(org.openqa.selenium.By by,
                                 java.lang.String keys,
                                 long timeout)
      • safeSendKeys

        public void safeSendKeys​(org.openqa.selenium.By by,
                                 java.lang.String keys)
      • doWithoutImplicitWait

        public <T> T doWithoutImplicitWait​(java.util.concurrent.Callable<T> runnable)
      • doWithoutImplicitWait

        public void doWithoutImplicitWait​(java.lang.Runnable runnable)