问题三:Appium 的 UIAutomator2 模式下使用 sendKeys 出现错误

在Appium默认的模式下,可以对TextFiled控件进行sendKeys操作;

 

设置capabilities.setCapability("automationName","uiautomator2")情况下,UIAutomator2模式下不能向非TextFiled控件进行sendKeys操作,一直会出现查找元素失败

但是可以对edit_text_view操作sendKeys,driver.findElementById("****:id/edit_text_view").sendKeys("123456");

https://testerhome.com/topics/17812

posted @ 2019-05-17 20:13  #甜甜8023  阅读(2001)  评论(0编辑  收藏  举报