wkeeling / selenium-wire

Extends Selenium's Python bindings to give you the ability to inspect requests made by the browser.
MIT License
1.86k stars 241 forks source link

Getting TypeError : Unexpected Keyword Argument 'executable_path' when creating seleniumwire chromedriver / undetected_chromedriver #682

Closed EsharkySignalZero closed 1 year ago

EsharkySignalZero commented 1 year ago

I'm getting this error -> TypeError: WebDriver.__init__() got an unexpected keyword argument 'executable_path'

import seleniumwire.undetected_chromedriver.v2 as uc
self.options = {
            'backend' : 'seleniumwire',
            'connection_timeout' : None,
}
chromeopts = uc.ChromeOptions()
chromeopts.add_argument("--headless")
self.driver = uc.Chrome(options=chromeopts,seleniumwire_options=self.options)
EsharkySignalZero commented 1 year ago

Solve it by downgrading selenium to version 4.9 as in reference to ISSUE IN SELENIUM