Error running browser=webdriver.Firefox() in Python

Asked 2 years ago, Updated 2 years ago, 196 views

I am using Mac Python 3.6

import selenium and
browser=webdriver.Firefox()
I tried
I'm in trouble because I can't make it.(Error statements are as follows)

I think there is no problem with the geckodriver PATH.

I'm a beginner, so I'd appreciate it if you could tell me in an easy-to-understand way.

>>>from selenium import webdriver
>> browser=webdriver.Firefox()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File"/anaconda3/lib/python 3.6/site-packages/selenium/webdriver/firefox/webdriver.py", line167, in_init__
    keep_alive=True)
  File"/anaconda3/lib/python 3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 156, in_init__
    self.start_session(capabilities, browser_profile)
  File"/anaconda3/lib/python 3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 251, in start_session
    response=self.execute(Command.NEW_SESSION, parameters)
  File"/anaconda3/lib/python 3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute
    self.error_handler.check_response(response)
  File"/anaconda3/lib/python 3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exception.SessionNotCreatedException:Message:Unable to find a matching set of capabilities

python selenium firefox selenium-webdriver

2022-09-30 21:34

1 Answers

UPDATE Firefox First


2022-09-30 21:34

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.