[New-bugs-announce] [issue30472] [Selenium 3.4.2-geckodriver 0.16.1] Python 3.6.1 unable to initialize webdriver with "marionette" set to True
Debanjan Bhattacharjee
report at bugs.python.org
Thu May 25 07:23:31 EDT 2017
New submission from Debanjan Bhattacharjee:
Python 3.6.1 unable to initialize webdriver (geckodriver) for Selenium with "marionette" set to True.
Here is my code block written in PyCharm:
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
caps = DesiredCapabilities().FIREFOX
caps["marionette"] = True
driver = webdriver.Firefox(capabilities=caps, executable_path="C:\\Utility\\BrowserDrivers\\geckodriver.exe")
driver.set_page_load_timeout(30)
driver.get("https://www.facebook.com/")
driver.maximize_window()
driver.implicitly_wait(20)
The error reads as:
C:\Python\python.exe C:/Users/AtechM_03/PycharmProjects/Webinar/SeleniumScripts/MyForthSeleniumScript.py
Traceback (most recent call last):
File "C:/Users/AtechM_03/PycharmProjects/Webinar/SeleniumScripts/MyForthSeleniumScript.py", line 7, in <module>
driver = webdriver.Firefox(capabilities=caps, executable_path="C:\\Utility\\BrowserDrivers\\geckodriver.exe")
File "C:\Python\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 152, in __init__
keep_alive=True)
File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 98, in __init__
self.start_session(desired_capabilities, browser_profile)
File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 188, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in execute
self.error_handler.check_response(response)
File "C:\Python\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilities
When "marionette" set back to False URL open up perfect.
----------
messages: 294470
nosy: debanjan
priority: normal
severity: normal
status: open
title: [Selenium 3.4.2-geckodriver 0.16.1] Python 3.6.1 unable to initialize webdriver with "marionette" set to True
type: compile error
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30472>
_______________________________________
More information about the New-bugs-announce
mailing list