Last active
April 15, 2016 15:17
-
-
Save jessehudl/ed5a879f478a74f8071d327ddc067a87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [45]: driver = webdriver.Remote('http://grid01:4445/wd/hub', {'platform':'MAC', 'deviceName':'iPhone 6s', 'browserName':'iPhone 6s', 'platformName':'iOS'}) | |
--------------------------------------------------------------------------- | |
WebDriverException Traceback (most recent call last) | |
<ipython-input-45-e6d271e79623> in <module>() | |
----> 1 driver = webdriver.Remote('http://grid01:4445/wd/hub', {'platform':'MAC', 'deviceName':'iPhone 6s', 'browserName':'iPhone 6s', 'platformName':'iOS'}) | |
/usr/local/lib/python3.5/site-packages/appium/webdriver/webdriver.py in __init__(self, command_executor, desired_capabilities, browser_profile, proxy, keep_alive) | |
34 desired_capabilities=None, browser_profile=None, proxy=None, keep_alive=False): | |
35 | |
---> 36 super(WebDriver, self).__init__(command_executor, desired_capabilities, browser_profile, proxy, keep_alive) | |
37 | |
38 if self.command_executor is not None: | |
/usr/local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py in __init__(self, command_executor, desired_capabilities, browser_profile, proxy, keep_alive, file_detector) | |
89 self.error_handler = ErrorHandler() | |
90 self.start_client() | |
---> 91 self.start_session(desired_capabilities, browser_profile) | |
92 self._switch_to = SwitchTo(self) | |
93 self._mobile = Mobile(self) | |
/usr/local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py in start_session(self, desired_capabilities, browser_profile) | |
171 desired_capabilities['firefox_profile'] = browser_profile.encoded | |
172 response = self.execute(Command.NEW_SESSION, { | |
--> 173 'desiredCapabilities': desired_capabilities, | |
174 }) | |
175 self.session_id = response['sessionId'] | |
/usr/local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py in execute(self, driver_command, params) | |
231 response = self.command_executor.execute(driver_command, params) | |
232 if response: | |
--> 233 self.error_handler.check_response(response) | |
234 response['value'] = self._unwrap_value( | |
235 response.get('value', None)) | |
/usr/local/lib/python3.5/site-packages/selenium/webdriver/remote/errorhandler.py in check_response(self, response) | |
192 elif exception_class == UnexpectedAlertPresentException and 'alert' in value: | |
193 raise exception_class(message, screen, stacktrace, value['alert'].get('text')) | |
--> 194 raise exception_class(message, screen, stacktrace) | |
195 | |
196 def _value_or_default(self, obj, key, default): | |
WebDriverException: Message: A new session could not be created. Details: The desiredCapabilities object was not valid for the following reason(s): browserName iPhone 6s is not included in the list. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment