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: __init__() got an unexpected keyword argument 'desired_capabilities' #1189

Open
ernany opened this issue Dec 8, 2023 · 1 comment

Comments

@ernany
Copy link

ernany commented Dec 8, 2023

Environment environ({'HOSTNAME': 'fea151ac8b0b', 'PYTHON_VERSION': '3.8.18', 'PWD': '/app', 'PYTHON_SETUPTOOLS_VERSION': '57.5.0', 'SELENIUM': 'http://firefox:4444/wd/hub', 'HOME': '/root', 'LANG': 'C.UTF-8', 'GPG_KEY': 'E3FF2839C048B25C084DEBE9B26995E310250568', 'TERM': 'xterm', 'SHLVL': '0', 'PYTHON_PIP_VERSION': '23.0.1', 'PYTHON_GET_PIP_SHA256': '9cc01665956d22b3bf057ae8287b035827bfd895da235bcea200ab3b811790b6', 'PYTHON_GET_PIP_URL': 'https://github.com/pypa/get-pip/raw/4cfa4081d27285bda1220a62a5ebf5b4bd749cdb/public/get-pip.py', 'PATH': '/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', '_': '/usr/local/bin/python'})
Traceback (most recent call last):
File "sample/remote.py", line 23, in
driver = WhatsAPIDriver(client="remote", command_executor="http://firefox:4444/wd/hub")
File "/usr/local/lib/python3.8/site-packages/webwhatsapi/init.py", line 274, in init
self.driver = webdriver.Remote(
TypeError: init() got an unexpected keyword argument 'desired_capabilities'

project not working?

@erm3nda
Copy link

erm3nda commented Dec 11, 2023

As far as I remember now, that argument is not passed anymore, is inside Options.
Actually I am not even using desired_capabilities...

Dig around this:

from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

from selenium.webdriver.firefox.options import Options

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

2 participants