summaryrefslogtreecommitdiff
path: root/django/test/selenium.py
AgeCommit message (Collapse)Author
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-06-27Refs #15727 -- Updated AdminSeleniumTestCase to use ↵Natalia
ContentSecurityPolicyMiddleware. Replaced the custom CSP middleware previously used in the admin's AdminSeleniumTestCase with the official ContentSecurityPolicyMiddleware. This change ensures alignment with Django's built-in CSP support. Also updates the test logic to inspect browser console logs to assert that no CSP violations are triggered during Selenium admin tests.
2025-04-16Disabled Chrome browser pop-ups that were interfering with selenium tests.Sarah Boyce
2024-05-13Fixed SeleniumTestCase.set_emulated_media() when using selenium_hub.Nick Pope
The .execute_cdp_cmd() method doesn't exist on selenium.webdriver.Remote.
2024-05-13Added support for using Microsoft Edge with Selenium.Nick Pope
2024-05-10Organized images in the screenshots workflow.Nick Pope
Added a top-level directory in the zip archive that is the commit hash which makes it easier when downloading multiple artifacts for comparison. Updated the filenames of screenshots for easier comparison between different cases. Added that an error is raised if no screenshots uploaded in workflow.
2024-05-02Added a high contrast mode to screenshot cases.Sarah Boyce
Thank you to Sarah Abderemane and Nick Pope for the reviews.
2023-10-18Refs #34043 -- Added --screenshots option to runtests.py and selenium tests.Sarah Boyce
2023-10-16Refs #34043 -- Added context managers to SeleniumTestCase for changing ↵Sarah Boyce
window size.
2023-06-26Fixed #34675 -- Fixed creating remote webdriver for Selenium 4.10.0+.Jonathan Weth
2023-06-19Refs #27079 -- Used addClassCleanup() in SeleniumTestCase.Sarah Boyce
Regression in def09bf4126d4886413adf7388882eca8e32576b.
2023-06-13Fixed #34649 -- Fixed headless deprecation warning on Selenium 4.8+.anthony kugel
Thanks David Smith for the report and initial patch.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-07-30Bumped minimum isort version to 5.1.0.David Smith
Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
2019-10-21Fixed #30876 -- Moved classproperty() decorator to the django.utils.functional.André Ericson
2019-05-17Fixed #30220 -- Added support for headless mode in selenium tests.Johannes Hoppe
2018-11-03Refs #29883 -- Removed runtests.py's dependency on selenium.Tim Graham
Regression in d207ac1568bb4dee305f6692ed7ddee8a1ff8b99.
2018-11-03Fixed #29883 -- Added selenium hub support to runtests.py.Tom Forbes
2017-03-04Refs #27656 -- Updated remaining docstring verbs according to PEP 257.Anton Samarchyan
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-20Refs #23919 -- Removed unneeded str() callsClaude Paroz
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-05-03Fixed #26577 -- Disabled implicit wait of Selenium tests where appropriate.Simon Charette
2016-03-15Fixed #25364 -- Added generic way to test on all browsers supported by selenium.Akshesh
Browser names should be passed as a comma separated list to the --selenium flag. Thanks Tim Graham, Simon Charette and Moritz Sichert for review and discussion.