How to use resource-id find location


#1

if have example please show me


#2

You have to be more explicit.

If you want to find element using id, there are several alternatives. You can use:

driver.findElementById("your_id")

#3

thank you but i want to know python2.7 can find resource-id or not?


#4

find_element_by_id I guess :thinking:


#5

xpath=//hierarchy/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.webkit.WebView[1]/android.webkit.WebView[1]/android.view.View[9]/android.widget.EditText[1]

xpath=//hierarchy/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.webkit.WebView[1]/android.webkit.WebView[1]/android.view.View[10]/android.widget.EditText[1]

This is different ??