#34675: Selenium WebDriver implementation is broken due to update of Selenium
---------------------------------------------+------------------------
Reporter: hansegucker | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------------+------------------------
{{{
def create_webdriver(self):
if self.selenium_hub:
from selenium import webdriver
> return webdriver.Remote(
command_executor=self.selenium_hub,
desired_capabilities=self.get_capability(self.browser),
)
E TypeError: WebDriver.__init__() got an unexpected keyword
argument 'desired_capabilities'
.tox/globalenv/lib/python3.11/site-packages/django/test/selenium.py:92:
TypeError
}}}
In selenium >= 4.10, `desired_capabilities` is no longer a valid argument
for the constructor of `WebDriver`. There seem to be other ways to set
those capabilities.
https://github.com/django/django/blob/main/django/test/selenium.py#L95
https://github.com/SeleniumHQ/selenium/commit/9f5801c82fb3be3d5850707c46c3f8176e3ccd8e
--
Ticket URL: <https://code.djangoproject.com/ticket/34675>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070188e95d106e-b245ecfa-4b5c-432c-9454-e36d689396c4-000000%40eu-central-1.amazonses.com.