Appium 各位进来看看,这个报错是啥原因呢?

Tsn_09 · 2017年03月05日 · 最后由 Tsn_09 回复于 2017年03月05日 · 1816 次阅读
#! /usr/bin/env python3
# -*- coding: utf-8 -*-

import os
import time
from appium import webdriver

desired_caps = {}
desired_caps['automationName'] = 'XCUITest'
desired_caps['appium-version'] = '1.6.3'
desired_caps['platformName'] = 'iOS'
desired_caps['platformVersion'] = '10.2'
desired_caps['deviceName'] = 'iPhone 6'
desired_caps['app'] = os.path.abspath('/Users/tian/Downloads/iOS/HappyWeek.app')
driver = webdriver.Remote('http://0.0.0.0:4723/wd/hub',desired_caps)
time.sleep(100)
driver.quit()


Traceback (most recent call last):
  File "/Users/tian/Documents/Python/Test/learn-appium.py", line 15, in <module>
    driver = webdriver.Remote('http://0.0.0.0:4723/wd/hub',desired_caps)
  File "/usr/local/lib/python3.6/site-packages/appium/webdriver/webdriver.py", line 36, in __init__
    super(WebDriver, self).__init__(command_executor, desired_capabilities, browser_profile, proxy, keep_alive)
  File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 92, in __init__
    self.start_session(desired_capabilities, browser_profile)
  File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 179, in start_session
    response = self.execute(Command.NEW_SESSION, capabilities)
  File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 192, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Condition unmet after 60088 ms. Timing out.


共收到 1 条回复 时间 点赞

为啥会超时呢

Tsn_09 关闭了讨论 03月05日 19:57
Tsn_09 关闭了讨论 03月05日 23:49
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册