简体   繁体   中英

Can't get UiAutomator to work - classes do not appear, UiAutomator2 driver absent

I am using Idea and Android Studio, writing my test with Appium, need to add UIautomator to my project, I added dependency statement to build.gradle file. compile group: 'androidx.test.uiautomator', name: 'uiautomator', version: '2.2.0-alpha4'

But I can't see any UI automator classes

Also I added following capability capabilities.setCapability("automationName", "UiAutomator2");

How can I use it? UiDevice search founds nothing

set skipServerInstall = False in DesiredCapabilities and you will get the latest UiAutomator2 from the appium. Once the test ran successfully for one time, you can set that to True again

根据文档,设置为使 appium 安装最新的 uiautomator2 服务器的正确功能是skipServerInstallation ,因此将其值设置为false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM