Skip to content

Instantly share code, notes, and snippets.

@yotswd

yotswd/keyword.robot

Last active Feb 8, 2019
Embed
What would you like to do?
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