Не в состоянии нажать на кнопку в Android AVD - PullRequest
0 голосов
/ 05 июня 2019

Я очень новичок в 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


Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...