Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Element not found by identifier in Appium

Tags:

android

appium

I am getting following error:

ValueError: Element locator 'identifier=id/edittext1' did not match any elements.

There is an element with id edittext1 but it is not recognized!

like image 276
Sai Kishore Avatar asked Nov 20 '22 12:11

Sai Kishore


1 Answers

I have faced the similar problem.

I used xpath for element locating.

For your reference below is the sample xpath

Input Text  xpath=/hierarchy[@rotation="0"]/android.widget.FrameLayout[@index="0"]/android.widget.LinearLayout[@index="0"]/android.widget.FrameLayout[@index="0"]/android.widget.RelativeLayout[@index="0"]/android.widget.EditText[@index="0"]
like image 67
Durai Amuthan.H Avatar answered Dec 26 '22 12:12

Durai Amuthan.H