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

Open NitkarshChourasia opened 2 months ago

NitkarshChourasia commented 2 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'

rebootsa commented 2 months ago

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

s33k3rs commented 2 months ago

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

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

iamtalhaasghar commented 2 weeks ago

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