Class WebSteps

    • Field Detail

      • properties

        public java.util.Properties properties
    • Constructor Detail

      • WebSteps

        public WebSteps​(TestContext testContext)
    • Method Detail

      • getContext

        public com.microsoft.playwright.BrowserContext getContext()
      • getPage

        public com.microsoft.playwright.Page getPage()
      • i_set_resolution

        @When("^Mobile - Mobile Resolution - I set the width (.+) and height (.+)$")
        public void i_set_resolution​(java.lang.String width,
                                     java.lang.String height)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • wait

        @When("^Mobile - I wait for (.+) seconds$")
        public void wait​(int seconds)
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_click_via_Mobile

        @When("^Mobile - I click element (.+)$")
        public void i_click_via_Mobile​(java.lang.String locatorPath)
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_click_text_via_Mobile

        @When("^Mobile - I click text (.+)$")
        public void i_click_text_via_Mobile​(java.lang.String text)
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_wait_to_be_visible_via_Mobile

        @When("^Mobile - I wait for element (.+) to be visible$")
        public void i_wait_to_be_visible_via_Mobile​(java.lang.String locatorPath)
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_verify_text_contains_via_Mobile

        @When("^Mobile - I verify text (.+) is present at (.+)$")
        public void i_verify_text_contains_via_Mobile​(java.lang.String text,
                                                      java.lang.String locatorPath)
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_verify_text_equals_via_Mobile

        @When("^Mobile - I verify text (.+) is matches with (.+)$")
        public void i_verify_text_equals_via_Mobile​(java.lang.String text,
                                                    java.lang.String locatorPath)
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getLastLocator

        public java.lang.String getLastLocator​(java.lang.String locatorPath)
      • PrintStackTrace

        public java.lang.String PrintStackTrace​(java.lang.String error)
      • i_fill_via_Mobile

        @When("^Mobile - I fill element (.+) with value (.+)$")
        public void i_fill_via_Mobile​(java.lang.String locatorPath,
                                      java.lang.String value)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_fill_via_random_value_Mobile

        @When("^Mobile - I fill element (.+) with random email alias (.+) with domain (.+)")
        public void i_fill_via_random_value_Mobile​(java.lang.String locatorPath,
                                                   java.lang.String alias,
                                                   java.lang.String emailDomain)
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_scroll_via_Mobile

        @When("^Mobile - I scroll element (.)$")
        public void i_scroll_via_Mobile​(java.lang.String elementName,
                                        java.lang.String value)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_open_app_Mobile

        @When("^Mobile - I open link (.+)$")
        public void i_open_app_Mobile​(java.lang.String link)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_open_app_with_name

        @When("^Mobile - I open app (.+)$")
        public void i_open_app_with_name​(java.lang.String appName)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_verify_Field_WithData

        @When("^Mobile - I verify data (.+) matches element (.+)$")
        public void i_verify_Field_WithData​(java.lang.String dataPath,
                                            java.lang.String locatorPath)
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_verify_text_contains_via_data_json

        @When("^Mobile - I verify data (.+) is present in element (.+)$")
        public void i_verify_text_contains_via_data_json​(java.lang.String dataPath,
                                                         java.lang.String locatorPath)
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_clear_element_via_Mobile

        @When("^Mobile - I clear input element (.+)$")
        public void i_clear_element_via_Mobile​(java.lang.String locatorPath)
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_fill_encrypted_password_element_via_Mobile

        @When("^Mobile - I fill input (.+) with encrypted password (.+)$")
        public void i_fill_encrypted_password_element_via_Mobile​(java.lang.String locatorPath,
                                                                 java.lang.String value)
                                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_fill_encrypted_password_element_via_data_json

        @When("^Mobile - I populate input (.+) with encrypted password with data (.+)$")
        public void i_fill_encrypted_password_element_via_data_json​(java.lang.String locatorPath,
                                                                    java.lang.String dataPath)
                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • i_fill_input__via_data_json

        @When("^Mobile - I populate input (.+) with data (.+)$")
        public void i_fill_input__via_data_json​(java.lang.String locatorPath,
                                                java.lang.String dataPath)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception