Using Robot Framework with combination of Appium and Selenium2Library/SeleniumLibrary. If I tried to run my script with some xpath locators like as below
AppiumLibrary.Click Element xpath=//android.widget.TextView[@text='Site Control']
in keywords file then getting below the error message.
Error Message:
Finding '//android.widget.EditText[@index='4']' using 'XPATH' with the contextId: '' multiple: true
Appium Logs:
[debug] [35m[AndroidBootstrap][39m [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [35m[AndroidBootstrap][39m [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [35m[AndroidBootstrap][39m [BOOTSTRAP LOG] [debug] Finding '//android.widget.EditText[@index='4']' using 'XPATH' with the contextId: '' multiple: true
Robot Script:
Click on Site Control and Create Case
AppiumLibrary.Click Element xpath=//android.widget.TextView[@text='Site Control']
sleep ${timeout}
AppiumLibrary.click element xpath=//android.widget.EditText[@index='4']
sleep ${timeout}
AppiumLibrary.input text xpath=//android.widget.EditText[@text='Intallationid'] site212