1

I'm really struggling with the geckodriver. When running the code below I get the error message "SessionNotCreatedException: Message: Error: NS_BINDING_ABORTED". The most recent call is the line where I call "driver = webdriver.Firefox(...)"

I've looked "everywhere" - would really appreciate any help!

import parameters
from time import sleep
from selenium import webdriver

option = webdriver.FirefoxOptions()
option.add_argument('--disable-blink-features=AutomationControlled')
option.add_argument("start-maximized")
option.binary_location=r'C:/Program Files/Mozilla Firefox/firefox.exe'

driver = webdriver.Firefox(executable_path=r'C:/Users/MO/geckodriver.exe', options=option)
driver.maximize_window()
MJ O
  • 111
  • 1
  • 1
  • 8

1 Answers1

0

Remove the argument --disable-blink-features=AutomationControlled:

option.add_argument('--disable-blink-features=AutomationControlled')

It was designed for ChromeDriver / combo but not for GeckoDriver / combo.

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
  • I tried to remove the argument, however I still get the same error message in the same line – MJ O Aug 11 '22 at 15:11