Issue
I am using Robot framework + Appium library for automation testing of ionic app . developer team assigns id to components . but when i am giving click element id command then there is error . unable to find that element . is there any different way to access ionic component in appium ?
Solution
What I think is you need exact way of using resource-id in appium. I have used resource-id with with xpath and it is working great.
you need to find exact resource-id from elements in appium and then make xpath with that ID.
For example: let say your div has ID "stackOverFlowDivId"
.
then your xpath will be :
xpath=//*[@resource-id='stackOverFlowDivId']
Use this method and try finding xpath in appium.
Hope you get success. Best luck.
Answered By - Amit Gandole
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.