Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: WebDriver.__init__() got multiple values for argument 'options' #142

Open
dhmyess opened this issue Oct 7, 2023 · 5 comments

Comments

@dhmyess
Copy link

dhmyess commented Oct 7, 2023

Hi I've got error when trying to execute messenger = WhatsApp()

Got errort message:
Traceback (most recent call last):
File "", line 1, in
File "/home/dharma/.local/lib/python3.10/site-packages/alright/init.py", line 39, in init
browser = webdriver.Chrome(
TypeError: WebDriver.init() got multiple values for argument 'options'

selenium.version
'4.13.0'
Chrome Version 117.0.5938.132

OS Linux Mint 21.2 Victoria

@vepman
Copy link

vepman commented Nov 4, 2023

Yes, me too.

Chrome Version 119.0.6045.106

@mbk87234
Copy link

mbk87234 commented Nov 23, 2023

I am facing the same error. The error probably arose since a recent update of selenium. A solution has been suggested here but I am not sure how to apply that. Lets hope that the developer fixes it.
https://stackoverflow.com/questions/76428561/typeerror-webdriver-init-got-multiple-values-for-argument-options

Removing the line 40 "ChromeDriverManager().install()," from __ init __.py solved the issue for me

@dreamlinepl
Copy link

Have you been able to remove that bug?

@dhmyess
Copy link
Author

dhmyess commented Nov 30, 2023

Can not use selenium latest version, use selenium 4.2.0
just pip install selenium==4.2.0

but i've got new issue today, looks like whatsapp web change again

@charvakanand
Copy link

I am facing the same error. The error probably arose since a recent update of selenium. A solution has been suggested here but I am not sure how to apply that. Lets hope that the developer fixes it. https://stackoverflow.com/questions/76428561/typeerror-webdriver-init-got-multiple-values-for-argument-options

Removing the line 40 "ChromeDriverManager().install()," from __ init __.py solved the issue for me

this is currently working for me as well!

Gudibettumane added a commit to Gudibettumane/alright that referenced this issue Mar 28, 2024
This change is due to Selenium 4.10.0. the first argument is no longer executable_path, but options. (That's why it complains that you're passing it in twice.)

If you want to pass in an executable_path, you'll have to use the service arg now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants