angel725 发表于 2017-08-06 16:20

appium连接出错

本帖最后由 angel725 于 2017-08-06 18:28 编辑

使用appium测试模拟器,出错
Traceback (most recent call last):
File "H:/PycharmProjects/app/app.py", line 11, in <module>
    driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
File "E:\Python\Python35-32\lib\site-packages\appium\webdriver\webdriver.py", line 36, in __init__
    super(WebDriver, self).__init__(command_executor, desired_capabilities, browser_profile, proxy, keep_alive)
File "E:\Python\Python35-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 98, in __init__
    self.start_session(desired_capabilities, browser_profile)
File "E:\Python\Python35-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 188, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
File "E:\Python\Python35-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 256, in execute
    self.error_handler.check_response(response)
File "E:\Python\Python35-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 194, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: A new session could not be created. (Original error: Command failed: C:\Windows\system32\cmd.exe /s /c "E:\Android\sdk\platform-tools\adb.exe -s emulator-5554 install "F:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk""
Failed to install F:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk: Failure
)

以前也试过代码是可以用的,
应该是在连接模拟器上出了问题。
环境是接教程做的,实在找不出哪出问题了
页: [1]
查看完整版本: appium连接出错