首页 新闻 会员 周边 捐助

用pycharm做android自动化测试、运行脚本报错、求大佬给出

0
[待解决问题]

Traceback (most recent call last):
File "F:/pycharmtest/test.py", line 16, in <module>
driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)
File "C:\Users\windows\AppData\Local\Programs\Python\Python36\lib\site-packages\appium\webdriver\webdriver.py", line 141, in init
proxy
File "C:\Users\windows\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "C:\Users\windows\AppData\Local\Programs\Python\Python36\lib\site-packages\appium\webdriver\webdriver.py", line 216, in start_session
response = self.execute(RemoteCommand.NEW_SESSION, parameters)
File "C:\Users\windows\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\windows\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: A new session could not be created. (Original error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "F:\android-sdk-windows\platform-tools\adb.exe -s 8DF6R16729021583 install "C:\Program Files (x86)\Appium\node_modules\appium\build\unicode_ime_apk\UnicodeIME-debug.apk""
adb: failed to install C:\Program Files (x86)\Appium\node_modules\appium\build\unicode_ime_apk\UnicodeIME-debug.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.android.ime without first uninstalling.]
)

mengfantao123的主页 mengfantao123 | 菜鸟二级 | 园豆:202
提问于:2019-05-16 23:27
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册