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

Tsn_09 · March 05, 2017 · Last by Tsn_09 replied at March 05, 2017 · 828 hits
#! /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 #1 · March 05, 2017 作者

为啥会超时呢

Tsn_09 关闭了讨论 05 Mar 19:57
Tsn_09 关闭了讨论 05 Mar 23:49
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up