我对Appium Automation非常陌生 我正在使用appium 1.13.0 Android OS:牛轧糖7.0 我在Eclips上运行的代码已创建了AVD
我用过
FindElementBy.xpath("//[@class=‘android.widget.Button’ and
@index=‘2’]").click(),
className(“android.widget.Button”)
xpath("//android.widget.Button[contains(contains(@text,‘LOGIN’))]")
xpath("//[contains(@class, ‘android.widget.Button’)][contains(text(),‘LOGIN’)]");
对我没有任何作用
[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“xpath”,“selector”:"//*[@class=‘android.widget.Button’ and @index=‘2’]",“context”:"",“multiple”:false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“xpath”,“selector”:"//*[@class=‘android.widget.Button’ and @index=‘2’]",“context”:"",“multiple”:false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding ‘//*[@class=‘android.widget.Button’ and @index=‘2’]’ using ‘XPATH’ with the contextId: ‘’ multiple: false