selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities

444 views
Skip to first unread message

silinmiş üye

unread,
Jul 31, 2020, 2:22:35 AM7/31/20
to Selenium Users
i tryed this one:

```
from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary = FirefoxBinary('/usr/lib/firefox-esr/firefox-bin')
driver = webdriver.Firefox(executable_path="/usr/local/bin/geckodriver")
driver.get("http://www.google.com")
print(driver.title)
```

after i tryed this one:

```
from selenium import webdriver

driver = webdriver.Firefox()
driver.get('https://google.com')
```

whatever i do i get this error:

```
Traceback (most recent call last):
  File "/home/azamet/Belgeler/Projelerim/main.py", line 4, in <module>
    driver = webdriver.Firefox(executable_path="/usr/local/bin/geckodriver")
  File "/home/azamet/.local/lib/python3.8/site-packages/selenium/webdriver/firefox/webdriver.py", line 158, in __init__
    RemoteWebDriver.__init__(
  File "/home/azamet/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
    self.start_session(desired_capabilities, browser_profile)
  File "/home/azamet/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/home/azamet/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
    self.error_handler.check_response(response)
  File "/home/azamet/.local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities
```

i tryed selenium 3.11.0 but result same! this is Mozilla Firefox 68.10.0esr which was working everytime but after fresh installing linux this happens to me :( i also tryed to fresh install the linux twice :D but nothing changes ...
now my selenium version is: 4.0.0a1

silinmiş üye

unread,
Jul 31, 2020, 2:32:02 AM7/31/20
to Selenium Users

silinmiş üye

unread,
Aug 3, 2020, 12:14:17 PM8/3/20
to Selenium Users
help please!?

31 Temmuz 2020 Cuma 09:22:35 UTC+3 tarihinde silinmiş üye yazdı:
Reply all
Reply to author
Forward
0 new messages