Kalebu / alright

Python wrapper for WhatsApp web-based on selenium
https://www.youtube.com/watch?v=yitQTt-NukM
MIT License
355 stars 109 forks source link

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

Open dhmyess opened 9 months ago

dhmyess commented 9 months ago

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 commented 8 months ago

Yes, me too.

Chrome Version 119.0.6045.106

mbk87234 commented 7 months ago

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 commented 7 months ago

Have you been able to remove that bug?

dhmyess commented 7 months ago

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 commented 6 months ago

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!