Monday, 15 February 2010

python - Can not get appium to launch iPhone simulator -



python - Can not get appium to launch iPhone simulator -

i have written simple python script:

from appium import web driver import unittest desired_caps = {} desired_caps['platformname'] = 'ios' desired_caps['platformversion'] = '7.1' desired_caps['devicename'] = 'iphone simulator' desired_caps['browsername'] = 'safari' driver = webdriver.remote('http://localhost:4723/wd/hub', desired_caps) driver.get("www.google.com")

but got next error log, executed script:

traceback (most recent phone call last): file "iostest.py", line 10, in <module> driver = webdriver.remote('http://localhost:4723/wd/hub', desired_caps) file "/library/python/2.7/site-packages/appium/webdriver/webdriver.py", line 35, in __init__ super(webdriver, self).__init__(command_executor, desired_capabilities, browser_profile, proxy, keep_alive) file "/library/python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 73, in __init__ self.start_session(desired_capabilities, browser_profile) file "/library/python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 121, in start_session 'desiredcapabilities': desired_capabilities, file "/library/python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 173, in execute self.error_handler.check_response(response) file "/library/python/2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 166, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.webdriverexception: message: u"a new session not created. (original error: enoent, stat '/applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator7.1.sdk/applications')"

my appium version is: 1.2.2 configurations are: server address: 127.0.0.1 port: 4723

can help?

thanks

it can't find simulator. version of xcode using?

can go below directory? there 7.1 simulator in there?

/applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks xcode 6 doesn't come 7.1 simulator default appium doesn't have back upwards xcode 6 currently. need utilize xcode 5 now.

python selenium appium

No comments:

Post a Comment