alright icon indicating copy to clipboard operation
alright copied to clipboard

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

Open NitkarshChourasia opened this issue 10 months ago • 4 comments

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'

NitkarshChourasia avatar Apr 13 '24 00:04 NitkarshChourasia

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

rebootsa avatar Apr 16 '24 17:04 rebootsa

@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

s33k3rs avatar Apr 20 '24 02:04 s33k3rs

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

NitkarshChourasia avatar Apr 20 '24 05:04 NitkarshChourasia

related https://stackoverflow.com/questions/76428561/typeerror-webdriver-init-got-multiple-values-for-argument-options

iamtalhaasghar avatar Jun 13 '24 03:06 iamtalhaasghar