could not find a driver for automationname 'uiautomator2' and platformname 'android'
因為 Appium 2.0 版本開始,driver(例如 uiautomator2、xcuitest 等)都變成獨立的套件,需要單獨安裝。
安裝:
appium driver install uiautomator2 確認安裝了哪些 driver:
appium driver list 會顯示你目前裝了什麼和沒裝什麼:
✔ Listing available drivers- uiautomator2@3.8.1 [installed (npm)]- xcuitest [not installed]- espresso [not installed]- mac2 [not installed]- windows [not installed]- safari [not installed]- gecko [not installed]- chromium [not installed]裝自己要用到的就好!
另外
appium driver list 有參數可以只看有裝的 driver:appium driver list --installed會顯示:
✔ Listing installed drivers - uiautomator2@3.8.1 [installed (npm)]
裝完之後,如果你原本有跑 appium server,記得重開才會生效~
沒有留言:
張貼留言