Testing 我们如何为这个绝对XPath层次结构创建XPath

Testing 我们如何为这个绝对XPath层次结构创建XPath,testing,xpath,automation,appium,absolute-path,Testing,Xpath,Automation,Appium,Absolute Path,在这里,我尝试了多种方法来创建它,但都没有成功 EX. 1.driver.findelementbypath(“//FrameLayout/LinearLayout/FrameLayout/FrameLayout/View/View/View/EditText”).sendKeys(“554455”) 2.driver.findelementbypath(“//android.widget.FrameLayout/android.widget.LinearLayout/android.widge

在这里,我尝试了多种方法来创建它,但都没有成功

EX.

1.driver.findelementbypath(“//FrameLayout/LinearLayout/FrameLayout/FrameLayout/View/View/View/EditText”).sendKeys(“554455”)

2.driver.findelementbypath(“//android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.view/android.view/android.view/android.view/android.view/android.view/android.view/android.widget.EditText[@text='PHONE NUMBER'])).sendKeys(“55445554455”)


请编辑问题,并发布XML的一部分,而不是屏幕截图。没有人可以拍摄代码的屏幕截图并尝试使用它。谢谢