Unable to find element using xpath?

Hi All,

I couldn’t find element using xpath or locate element, getting the following UI Automator Viewer:

Appreciate for your solution and great if you let me know the root cause why unable to find element in my case. And another question is What are deference between MobileBy and By?

Thanks in advanced,
Xuyen Tran

Hello,
please make the x path with class name and bounds attribute it will work …try it and let me know if you face any other issue

class name with text value also works…for ex; xpath=classname[@Text=‘text value’]…in ur case xpath=android.widget.TextView[@Text=‘To-Do’]

Thanks All for your reply!
I resolved this issue by myself. Something wrong in Appium configuration.

Thanks,
Xuyen Tran