Class WebUI


  • public class WebUI
    extends java.lang.Object
    • Constructor Detail

      • WebUI

        public WebUI()
    • Method Detail

      • openBrowser

        public static org.openqa.selenium.WebDriver openBrowser()
      • openBrowser

        public static org.openqa.selenium.WebDriver openBrowser​(java.lang.String url)
      • openBrowser

        public static org.openqa.selenium.WebDriver openBrowser​(java.lang.String browser,
                                                                java.lang.String url)
      • navigateToUrl

        public static void navigateToUrl​(java.lang.String url)
      • closeBrowser

        public static void closeBrowser()
      • findWebElement

        public static org.openqa.selenium.WebElement findWebElement​(TestObject testObject)
                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • findWebElements

        public static java.util.List<org.openqa.selenium.WebElement> findWebElements​(TestObject testObject)
                                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • click

        public static void click​(TestObject testObject)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • click

        public static void click​(TestObject testObject,
                                 int timeout)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setText

        public static void setText​(TestObject testObject,
                                   java.lang.String text)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getText

        public static java.lang.String getText​(TestObject testObject)
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getTexts

        public static java.util.List<java.lang.String> getTexts​(TestObject testObject)
                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • moveToElement

        public static void moveToElement​(TestObject testObject)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • scrollToElement

        public static void scrollToElement​(TestObject testObject)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • uploadFile

        public static void uploadFile​(TestObject testObject,
                                      java.lang.String absolutePath)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • verifyElementPresent

        public static void verifyElementPresent​(TestObject testObject)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • verifyElementNotPresent

        public static void verifyElementNotPresent​(TestObject testObject)
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • verifyElementVisible

        public static void verifyElementVisible​(TestObject testObject)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • verifyElementNotVisible

        public static void verifyElementNotVisible​(TestObject testObject)
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • verifyElementTextEquals

        public static void verifyElementTextEquals​(TestObject testObject,
                                                   java.lang.String expectText)
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • verifyElementTextContains

        public static void verifyElementTextContains​(TestObject testObject,
                                                     java.lang.String expectText)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception