alright
alright copied to clipboard
TypeError: WebDriver.__init__() got multiple values for argument 'options
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'
hello i've got error
TypeError: WebDriver.init() got multiple values for argument 'options'
@NitkarshChourasia
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
Thanks, I'll check it out.
On Sat, 20 Apr 2024 at 07:37, s33k3rs @.***> wrote:
Add from selenium.webdriver.chrome.service import Service as ChromeService and change if not browser: 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
— Reply to this email directly, view it on GitHub https://github.com/Kalebu/alright/issues/151#issuecomment-2067513491, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVTTXYGY3SWOGJPHDD75Z6DY6HEXXAVCNFSM6AAAAABGE75USGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXGUYTGNBZGE . You are receiving this because you authored the thread.Message ID: @.***>
-- Nitkarsh Chourasia
related https://stackoverflow.com/questions/76428561/typeerror-webdriver-init-got-multiple-values-for-argument-options