Skip to content

Instantly share code, notes, and snippets.

@yotswd
Last active February 8, 2019 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yotswd/2f677eb14a365cc3bda69a5f025770cd to your computer and use it in GitHub Desktop.
Save yotswd/2f677eb14a365cc3bda69a5f025770cd to your computer and use it in GitHub Desktop.
test
# keyword IOS
*** Variables ***
${REMOTE_URL} http://localhost:4723/wd/hub
${PLATFORM_NAME} iOS
${PLATFORM_VERSION} 12.1
${DEVICE_NAME} iPhone XR
${APP_LOCATION} /Users/yotsawadee/Downloads/jobthai.app
${BUNDLE_ID} com.THiNKNET.JobThai
*** Keyword ***
Open App Jobthai Upgrade
Open Application ${REMOTE_URL} platformName=${PLATFORM_NAME} platformVersion=${PLATFORM_VERSION} deviceName=${DEVICE_NAME} app=${APP_LOCATION} bundleID=${BUNDLE_ID}
Wait Until Element Is Visible ${IOS_BTN_NEXT} 5s
Skip Welcome Page
: FOR ${INDEX} IN RANGE 0 4
\ Run Keyword IF ${INDEX}==${INDEX} Click Element ${IOS_BTN_NEXT}
Search Job
[Arguments] ${TEXT_SEARCH}
Scroll Down ${IOS_ICON_SEARCH}
Click Element ${IOS_ICON_SEARCH}
Wait Until Element Is Visible ${IOS_FIELD_SEARCH} 5s
Input Text ${IOS_FIELD_SEARCH} ${TEXT_SEARCH}
Click Element ${IOS_BTN_SEARCH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment