#! /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.