Class TestUtils


  • public final class TestUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void login​(org.openqa.selenium.WebDriver driver, java.lang.String url, java.lang.String login, java.lang.String senha)  
      static void logout​(org.openqa.selenium.WebDriver driver)  
      static void screenshot​(org.openqa.selenium.WebDriver driver, java.io.File filePng)  
      static void scrollTo​(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement webElement)  
      static void scrollToButtonsDivDataMaster​(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement webElement)  
      static void waitForAjaxProcess​(org.openqa.selenium.WebDriver driver, int timeSecondsWaitMessage)  
      static void waitForMessageProcess​(org.openqa.selenium.WebDriver driver, int timeSecondsWaitMessage)  
      • Methods inherited from class java.lang.Object

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

      • login

        public static void login​(org.openqa.selenium.WebDriver driver,
                                 java.lang.String url,
                                 java.lang.String login,
                                 java.lang.String senha)
      • logout

        public static void logout​(org.openqa.selenium.WebDriver driver)
      • scrollTo

        public static void scrollTo​(org.openqa.selenium.WebDriver driver,
                                    org.openqa.selenium.WebElement webElement)
      • scrollToButtonsDivDataMaster

        public static void scrollToButtonsDivDataMaster​(org.openqa.selenium.WebDriver driver,
                                                        org.openqa.selenium.WebElement webElement)
      • waitForMessageProcess

        public static void waitForMessageProcess​(org.openqa.selenium.WebDriver driver,
                                                 int timeSecondsWaitMessage)
      • waitForAjaxProcess

        public static void waitForAjaxProcess​(org.openqa.selenium.WebDriver driver,
                                              int timeSecondsWaitMessage)
      • screenshot

        public static void screenshot​(org.openqa.selenium.WebDriver driver,
                                      java.io.File filePng)