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 #151

Open
NitkarshChourasia opened this issue Apr 13, 2024 · 3 comments

Comments

@NitkarshChourasia
Copy link

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'

@rebootsa
Copy link

hello i've got error
TypeError: WebDriver.init() got multiple values for argument 'options'

@s33k3rs
Copy link

s33k3rs commented Apr 20, 2024

@NitkarshChourasia

init

Add from selenium.webdriver.chrome.service import Service as ChromeService
and change
browser = webdriver.Chrome( ChromeDriverManager().install(), options=self.chrome_options, )
to
browser = webdriver.Chrome( service=ChromeService(ChromeDriverManager().install()), options=self.chrome_options )
on file /home/dharma/.local/lib/python3.10/site-packages/alright/init.py

@NitkarshChourasia
Copy link
Author

NitkarshChourasia commented Apr 20, 2024 via email

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

3 participants