Then Steps

Autokin Mobile Steps

Then I wait {time in seconds} seconds

Make the test wait for desired seconds enough for hte mobile to be displayed or anything that is needed for wait.

Scenario: Autokin Mobile
    Given that I set "iOS" as platform with version of "13.0"
    Given that I set "iPhone 11 Pro" as device
    Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
    When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
    Then I wait 3 seconds

Then I capture mobile screen as {path to image}

Captures the current screen image of the mobile app. No need to include file extension as this will be appended with .png, and since images will be in PNG format.

Scenario: Autokin Mobile
    Given that I set "iOS" as platform with version of "13.0"
    Given that I set "iPhone 11 Pro" as device
    Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
    When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
    Then I wait 3 seconds
    Then I capture mobile screen as "mobile_home"

Then I swipe to the {direction}

Then I tap on element with accessibility id of {accessibility id}

Then I tap on element with xpath of {XPath}

Then I tap on {X Coordinate}, {Y Coordinate}

Then I set {value} value to element with accessibility id of {accessibility id}

Then I set {value} value to element with xpath of {XPath}

Then I expect element with accessibility id of {accessibility id} has value {value}

Then I expect device keyboard is visibile

Check if mobile keyboard is visible

Then I hide device keyboard

Trigger to hide on screen keyboard

Then I shake the device

Perform shake gesture on the device

Then I make the app run in the background and make active after {time in seconds} seconds

Make the application runs in the background and make it active when time in seconds elapsed.

Then I close the session

Close the appium server session of the mobile app and close it as well.

Last updated

Was this helpful?