mirror of
https://github.com/appium/appium.git
synced 2026-05-18 09:08:51 -05:00
e717690e63
robot framework contact example for android added
20 lines
894 B
Plaintext
20 lines
894 B
Plaintext
*** Settings ***
|
|
Library AppiumLibrary
|
|
|
|
*** Variables ***
|
|
${REMOTE_URL} http://localhost:4723/wd/hub
|
|
${PLATFORM_NAME} Android
|
|
${PLATFORM_VERSION} 4.2.2
|
|
${DEVICE_NAME} Android Emulator
|
|
${APP} ../../../sample-code/apps/ContactManager/ContactManager.apk
|
|
|
|
*** Keywords ***
|
|
add new contact
|
|
[Arguments] ${contact_name} ${contact_phone} ${contact_email}
|
|
Open Application ${REMOTE_URL} ${PLATFORM_NAME} ${PLATFORM_VERSION} ${DEVICE_NAME} ${APP}
|
|
Click Element accessibility_id=Add Contact
|
|
Input Text id=com.example.android.contactmanager:id/contactNameEditText ${contact_name}
|
|
Input Text id=com.example.android.contactmanager:id/contactPhoneEditText ${contact_phone}
|
|
Input Text id=com.example.android.contactmanager:id/contactEmailEditText ${contact_email}
|
|
Click Element accessibility_id=Save
|