Hi, I’m doing mobile automation with robot framework & Appium. I want to enter the texts & numbers in my application by pressing the mobile keyboard (Screenshot_01).
This is what I have so far,
`*** Settings ***
Library AppiumLibrary
Resource /some/path/Variables.robot
*** Test Cases ***
TC_01_Login with valid details
Open Application http://localhost:4723/wd/hub platformName=Android deviceName=emulator-5554 app=C:/APK/APK_File_Name.apk automationName=Uiautomator2
sleep 10s
# Skip Button
click element //android.widget.TextView[@text="Skip"]
sleep 5s
# Enter the Name
input text ${Locator_Name} xxxxx
sleep 5s
# Continue Button
click element ${Continue_Button}
sleep 10s
# Enter the Mobile Number
click element ${Locator_Mobile}
sleep 25s
#############################
#Try 1
# Click No. 0 from the mobile keyboard
click element //android.widget.LinearLayout[@text="0"]
sleep 1s
#############################
#Try 2
# Click No. 0 from the mobile keyboard
PRESS KEYCODE None 0
sleep 2s
#############################
# Next Button
click element ${Next_Button}`
Here, First I tried as “Try 1”, and get the below error;
ValueError: Element locator ‘//android.widget.LinearLayout[@text=“0”]’ did not match any elements.
Then I deleted the first method and tried as “Try 2”. But it closed the application so that I couldn’t complete the scenario.
Please help to solve this issue. Any guidance and advice will be greatly appreciated!