D:\pythonProject\Scripts\python.exe C:/Users/騎兵連老高/PycharmProjects/pythonProject/Appium_study_01.py
{'platformName': 'Android', 'platformVersion': '7.0.1.0', 'deviceName': 'nox', 'appPackage': 'com.tencent.mobileqq', 'appActivity': 'com.tencent.mobileqq.activity.LoginActivity'}
Traceback (most recent call last):
File "C:\Users\騎兵連老高\PycharmProjects\pythonProject\Appium_study_01.py", line 11, in <module>
AD=webdriver.Remote("http://127.0.0.1:4723/wd/hub",desire_caps) #將前面的字典所帶有的資訊傳入到指定appium服務器,并且實作實體化(創建一個物件)
File "D:\pythonProject\lib\site-packages\appium\webdriver\webdriver.py", line 155, in __init__
super().__init__(
File "D:\pythonProject\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "D:\pythonProject\lib\site-packages\appium\webdriver\webdriver.py", line 225, in start_session
response = self.execute(RemoteCommand.NEW_SESSION, parameters)
File "D:\pythonProject\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "D:\pythonProject\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 "D:\appium\android-sdk-windows\platform-tools\adb.exe -s 127.0.0.1:62001 install "D:\appiumna\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk""
adb: failed to install D:\appiumna\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.settings without first uninstalling.]
)
Process finished with exit code 1

轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/274599.html
標籤:Android
上一篇:Qt 如何獲取U盤名稱
下一篇:linux Qt無法使用中文
