[Django] #33211: Update tests for Selenium v4.

19 views
Skip to first unread message

Django

unread,
Oct 20, 2021, 8:34:34 AM10/20/21
to django-...@googlegroups.com
#33211: Update tests for Selenium v4.
-------------------------------------+-------------------------------------
Reporter: Carlton | Owner: Carlton Gibson
Gibson |
Type: | Status: assigned
Cleanup/optimization |
Component: Testing | Version: dev
framework |
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Selenium 4 deprecated the various `"find_element(s)_by_*"` methods, in
favour of `find_element(s)` with an explicit `By`.

--
Ticket URL: <https://code.djangoproject.com/ticket/33211>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Oct 20, 2021, 9:22:12 AM10/20/21
to django-...@googlegroups.com
#33211: Update tests for Selenium v4.
-------------------------------------+-------------------------------------
Reporter: Carlton Gibson | Owner: Carlton
Type: | Gibson
Cleanup/optimization | Status: assigned
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/14831 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/33211#comment:1>

Django

unread,
Oct 21, 2021, 12:49:15 AM10/21/21
to django-...@googlegroups.com
#33211: Update tests for Selenium v4.
-------------------------------------+-------------------------------------
Reporter: Carlton Gibson | Owner: Carlton
Type: | Gibson
Cleanup/optimization | Status: assigned
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/33211#comment:2>

Django

unread,
Oct 21, 2021, 4:24:16 AM10/21/21
to django-...@googlegroups.com
#33211: Update tests for Selenium v4.
-------------------------------------+-------------------------------------
Reporter: Carlton Gibson | Owner: Carlton
Type: | Gibson
Cleanup/optimization | Status: assigned
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/33211#comment:3>

Django

unread,
Oct 21, 2021, 9:26:30 AM10/21/21
to django-...@googlegroups.com
#33211: Update tests for Selenium v4.
-------------------------------------+-------------------------------------
Reporter: Carlton Gibson | Owner: Carlton
Type: | Gibson
Cleanup/optimization | Status: assigned
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Carlton Gibson <carlton.gibson@…>):

In [changeset:"8fa974fcdde90b6719a1058e77541389ff1809b5" 8fa974fc]:
{{{
#!CommitTicketReference repository=""
revision="8fa974fcdde90b6719a1058e77541389ff1809b5"
Refs #33211 -- Added assertCountSeleniumElements() test helper.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33211#comment:4>

Django

unread,
Oct 21, 2021, 9:26:31 AM10/21/21
to django-...@googlegroups.com
#33211: Update tests for Selenium v4.
-------------------------------------+-------------------------------------
Reporter: Carlton Gibson | Owner: Carlton
Type: | Gibson
Cleanup/optimization | Status: closed

Component: Testing framework | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson <carlton.gibson@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"2ccc0b22db6730ba0950b10bbc5238ae575e4a45" 2ccc0b22]:
{{{
#!CommitTicketReference repository=""
revision="2ccc0b22db6730ba0950b10bbc5238ae575e4a45"
Fixed #33211 -- Updated tests for Selenium 4.0.0.

Replaced deprecated `find_element[s]_by_*()` usages, in favour of
`find_element[s]()` with an explicit `By`.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33211#comment:5>

Reply all
Reply to author
Forward
0 new messages