Open ernany opened 11 months ago
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_PIPURL': '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?
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.firefox.options import Options
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_PIPURL': '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?