Package co.nz.getskills.auto.appsteps
Class i0SSteps
- java.lang.Object
-
- co.nz.getskills.auto.appsteps.i0SSteps
-
public class i0SSteps extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description i0SSteps(TestContext testContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidandroid_can_see_text(java.lang.String text)voidi_click_iOS_App_field_with_accessibilityId(java.lang.String locatorPath)The method will search for the element with accessibility id of element and clickvoidi_click_iOS_text(java.lang.String text)The method will search for the element with text by creating an xpath and clickvoidi_fill_iOS_App_field_with_id(java.lang.String locatorPath, java.lang.String value)The method will search for the element with accessibility id of element and fill datavoidi_fill_iOS_App_field_with_label(java.lang.String label, java.lang.String value)The method will search for the element with xpath generated by label name and will fill the value.Use this for password fieldsvoidi_open_iOS_app(java.lang.String appName)The method will launch iOS Appvoidi_set_ios_phone(java.lang.String iPhoneName)The method will set iOS device namevoidtearDown1()
-
-
-
Constructor Detail
-
i0SSteps
public i0SSteps(TestContext testContext)
-
-
Method Detail
-
i_set_ios_phone
@When("^I set up iOS phone (.+)$") public void i_set_ios_phone(java.lang.String iPhoneName) throws java.lang.ExceptionThe method will set iOS device name- Parameters:
iPhoneName- e.g iPhone X, iPhone 11, iPhone 12, iPhone 13, iPhone 14, iPhone 15- Throws:
java.lang.Exception
-
i_open_iOS_app
@When("^I open iOS app (.+)$") public void i_open_iOS_app(java.lang.String appName) throws java.lang.ExceptionThe method will launch iOS App- Parameters:
appName-- Throws:
java.lang.Exception
-
i_click_iOS_text
@When("^I click on iOS app text (.+)$") public void i_click_iOS_text(java.lang.String text) throws java.lang.ExceptionThe method will search for the element with text by creating an xpath and click- Parameters:
text-- Throws:
java.lang.Exception
-
i_click_iOS_App_field_with_accessibilityId
@When("^I click iOS app element (.+)$") public void i_click_iOS_App_field_with_accessibilityId(java.lang.String locatorPath) throws java.lang.ExceptionThe method will search for the element with accessibility id of element and click- Parameters:
locatorPath-- Throws:
java.lang.Exception
-
i_fill_iOS_App_field_with_id
@When("^I fill iOS app input element (.+) with value (.+)$") public void i_fill_iOS_App_field_with_id(java.lang.String locatorPath, java.lang.String value) throws java.lang.ExceptionThe method will search for the element with accessibility id of element and fill data- Parameters:
locatorPath-value-- Throws:
java.lang.Exception
-
i_fill_iOS_App_field_with_label
@When("^I fill iOS app input with label (.+) with value (.+)$") public void i_fill_iOS_App_field_with_label(java.lang.String label, java.lang.String value) throws java.lang.ExceptionThe method will search for the element with xpath generated by label name and will fill the value.Use this for password fields- Parameters:
label-value-- Throws:
java.lang.Exception
-
android_can_see_text
@When("^iOS - I can see text (.+)$") public void android_can_see_text(java.lang.String text) throws java.lang.Exception- Throws:
java.lang.Exception
-
tearDown1
public void tearDown1()
-
-