This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2017年05月25日 11:23 by debanjan, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg294470 - (view) | Author: Debanjan Bhattacharjee (debanjan) | Date: 2017年05月25日 11:23 | |
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.
|
|||
| msg294535 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2017年05月26日 07:38 | |
This is the bug tracker for Python itself. What you're having is an issue with selenium, which is a third-party library. I recommend you post your issue on the selenium bug tracker instead. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:46 | admin | set | github: 74657 |
| 2017年05月26日 07:38:12 | pitrou | set | status: open -> closed resolution: rejected stage: resolved |
| 2017年05月26日 07:38:00 | pitrou | set | nosy:
+ pitrou messages: + msg294535 |
| 2017年05月25日 11:23:31 | debanjan | create | |