Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find xpath in mobile app using appium

I tried using Find element by id but it is not inserting required data. Then I used Find element by xpath //android.widget.ScrollView[0]/android.widget.RelativeLayout[0]/android.widget.TextView[0]/ndroid.widget.TextView[1]/android.widget.EditText[2]")).sendKeys("[email protected]");

but still it is not working.enter image description here

like image 283
Kaivalya Avatar asked May 22 '14 06:05

Kaivalya


1 Answers

Please use this Xpath , I hope this solves your problem:

By.xpath("//android.widget.EditText[@text='Email ID']")
like image 119
Abhishek Swain Avatar answered Sep 27 '22 20:09

Abhishek Swain