Я очень новичок в Appium Automation
Я пользуюсь appium 1.13.0
Android Os: Nougat 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