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.
1
Scenario: Autokin Mobile
2
Given that I set "iOS" as platform with version of "13.0"
3
Given that I set "iPhone 11 Pro" as device
4
Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
5
When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
6
Then I wait 3 seconds
Copied!

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.
1
Scenario: Autokin Mobile
2
Given that I set "iOS" as platform with version of "13.0"
3
Given that I set "iPhone 11 Pro" as device
4
Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
5
When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
6
Then I wait 3 seconds
7
Then I capture mobile screen as "mobile_home"
Copied!

Then I swipe to the {direction}

1
Scenario: Autokin Mobile
2
Given that I set "iOS" as platform with version of "13.0"
3
Given that I set "iPhone 11 Pro" as device
4
Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
5
When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
6
Then I wait 3 seconds
7
Then I swipe to the left
8
Then I swipe to the right
9
Then I swipe to the up
10
Then I swipe to the down
Copied!

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

1
Scenario: Autokin Mobile
2
Given that I set "iOS" as platform with version of "13.0"
3
Given that I set "iPhone 11 Pro" as device
4
Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
5
When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
6
Then I wait 3 seconds
7
Then I tap on element with accessibility id of "Sign In"
Copied!

Then I tap on element with xpath of {XPath}

1
Scenario: Autokin Mobile
2
Given that I set "iOS" as platform with version of "13.0"
3
Given that I set "iPhone 11 Pro" as device
4
Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
5
When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
6
Then I wait 3 seconds
7
Then I tap on element with xpath of "//XCUIElementTypeButton[@name="Hello"]"
Copied!

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

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

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

1
Scenario: Autokin Mobile
2
Given that I set "iOS" as platform with version of "13.0"
3
Given that I set "iPhone 11 Pro" as device
4
Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
5
When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
6
Then I wait 3 seconds
7
Then I set "Hello World" value to element with accessibility id of "MyField"
Copied!

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

1
Scenario: Autokin Mobile
2
Given that I set "iOS" as platform with version of "13.0"
3
Given that I set "iPhone 11 Pro" as device
4
Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
5
When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
6
Then I wait 3 seconds
7
Then I set "Hello World" value to element with xpath of "//XCUIElement"
Copied!

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

1
Scenario: Autokin Mobile
2
Given that I set "iOS" as platform with version of "13.0"
3
Given that I set "iPhone 11 Pro" as device
4
Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
5
When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
6
Then I wait 3 seconds
7
Then I expect element with accessibility id of "FieldName" has value "Hello"
Copied!

Then I expect device keyboard is visibile

Check if mobile keyboard is visible
1
Scenario: Autokin Mobile
2
Given that I set "iOS" as platform with version of "13.0"
3
Given that I set "iPhone 11 Pro" as device
4
Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
5
When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
6
Then I wait 3 seconds
7
Then I expect device keyboard is visibile
Copied!

Then I hide device keyboard

Trigger to hide on screen keyboard
1
Scenario: Autokin Mobile
2
Given that I set "iOS" as platform with version of "13.0"
3
Given that I set "iPhone 11 Pro" as device
4
Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
5
When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
6
Then I wait 3 seconds
7
Then I hide device keyboard
Copied!

Then I shake the device

Perform shake gesture on the device
1
Scenario: Autokin Mobile
2
Given that I set "iOS" as platform with version of "13.0"
3
Given that I set "iPhone 11 Pro" as device
4
Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
5
When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
6
Then I wait 3 seconds
7
Then I shake the device
Copied!

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.
1
Scenario: Autokin Mobile
2
Given that I set "iOS" as platform with version of "13.0"
3
Given that I set "iPhone 11 Pro" as device
4
Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
5
When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
6
Then I wait 3 seconds
7
Then I make the app run in the background and make active after 3 seconds
Copied!

Then I close the session

Close the appium server session of the mobile app and close it as well.
1
Scenario: Autokin Mobile
2
Given that I set "iOS" as platform with version of "13.0"
3
Given that I set "iPhone 11 Pro" as device
4
Given that app is located at "http://www.autokinjs.com/myapps/myios_sample_app.zip"
5
When I create new session on "https://appium.autokinjs.com:4723/wd/hub"
6
Then I wait 3 seconds
7
Then I make the app run in the background and make active after 3 seconds
8
Then I close the session
Copied!