appium 踩坑记录

报错信息:

because package io.appium.uiautomator2.server.test does not have a signature matching the target io.appium.uiautomator2.server

解决办法:

目测应该是io.appium.uiautomator2.server.test.apk和io.appium.uiautomator2.server.apk 对应不上
所以重新安装这两个apk
在执行用例的时候

caps["skipServerInstallation"] = False  # 默认为False,这句不添加也行,之前是把这个地方设置为True了
self.driver = webdriver.Remote("http://localhost:4723/wd/hub", caps)

再跑一次,执行成功。

猜你喜欢

转载自www.cnblogs.com/congyinew/p/12324395.html