Could not extract PIDs from ps output. PIDS: [], Procs: ["bad pid 'uiautomator'"] 跑 python 脚本的时候一直跑不通,卡在这个问题上。网上也找过相关自动,说是在 C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib 中的 ADB JS 文件中增加一行代码。我加了也没有作用,仍然报此错误。哪位大神能帮下,卡在这里半天了。附上测试的 PYTHON 代码
# coding=utf-8
from appium import webdriver
desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '7.0'
desired_caps['deviceName'] = 'Android Emulator'
desired_caps['appPackage'] = '正确的PACKAGE'
desired_caps['appActivity'] = '正确的ACTIVITY'
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
driver.find_element_by_id('bt_login').click()
driver.quit()