Skip to content

TypeError: WebDriver.init() got multiple values for argument 'options' #4

Description

@ZeulSchiaAmar

Hi there,

I'm encountering an error when I attempt to set up the Selenium Chrome driver in your script.

Here's the relevant piece of code:
## set up Selenium Chrome driver driver = webdriver.Chrome(ChromeDriverManager().install(), options=option, desired_capabilities=caps, seleniumwire_options=proxy_options)
When I run this script, I receive the following error message:
Exception has occurred: TypeError WebDriver.__init__() got multiple values for argument 'options' File "scraperapi-code-examples.py", line 73, in <module> driver = webdriver.Chrome(ChromeDriverManager().install(), TypeError: WebDriver.__init__() got multiple values for argument 'options'
It seems that the options argument in WebDriver.init() is getting multiple values, causing this TypeError.

I'm running this script on (Windows 10, Python 3.10.1), and I've installed all the necessary dependencies listed in your documentation.

Any help you could provide in addressing this issue would be greatly appreciated.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions