Class WebSteps
- java.lang.Object
-
- co.nz.getskills.auto.Base.TestDriver
-
- co.nz.getskills.auto.appsteps.playrightSteps.WebSteps
-
public class WebSteps extends TestDriver
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Propertiesproperties-
Fields inherited from class co.nz.getskills.auto.Base.TestDriver
options, prop, service, webDriver, webDriverManager
-
-
Constructor Summary
Constructors Constructor Description WebSteps(TestContext testContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.microsoft.playwright.BrowserContextgetContext()java.lang.StringgetLastLocator(java.lang.String locatorPath)com.microsoft.playwright.PagegetPage()voidi_clear_element_via_Mobile(java.lang.String locatorPath)voidi_click_text_via_Mobile(java.lang.String text)voidi_click_via_Mobile(java.lang.String locatorPath)voidi_fill_encrypted_password_element_via_data_json(java.lang.String locatorPath, java.lang.String dataPath)voidi_fill_encrypted_password_element_via_Mobile(java.lang.String locatorPath, java.lang.String value)voidi_fill_input__via_data_json(java.lang.String locatorPath, java.lang.String dataPath)voidi_fill_via_Mobile(java.lang.String locatorPath, java.lang.String value)voidi_fill_via_random_value_Mobile(java.lang.String locatorPath, java.lang.String alias, java.lang.String emailDomain)voidi_open_app_Mobile(java.lang.String link)voidi_open_app_with_name(java.lang.String appName)voidi_scroll_via_Mobile(java.lang.String elementName, java.lang.String value)voidi_set_resolution(java.lang.String width, java.lang.String height)voidi_verify_Field_WithData(java.lang.String dataPath, java.lang.String locatorPath)voidi_verify_text_contains_via_data_json(java.lang.String dataPath, java.lang.String locatorPath)voidi_verify_text_contains_via_Mobile(java.lang.String text, java.lang.String locatorPath)voidi_verify_text_equals_via_Mobile(java.lang.String text, java.lang.String locatorPath)voidi_wait_to_be_visible_via_Mobile(java.lang.String locatorPath)java.lang.StringPrintStackTrace(java.lang.String error)voidwait(int seconds)-
Methods inherited from class co.nz.getskills.auto.Base.TestDriver
setUpWebDriver, setUpWiniumDriver
-
-
-
-
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
-
-