Skip to content

Upgrade Selenium to version 4

Linus Keiser requested to merge 257-fix-django-deprecation-warnings into master

Further reduces number of deprecated dependencies and number of warnings in frontend tests.

Changelog for Selenium 4 Migration

Version and Dependency Updates

  • chore (3449e9e3): Updated Selenium to version 4.
  • build (b115e14): Reverted to using the gecko image from the python-geckodriver repository. Updated the geckodriver version in the CI environment to support Selenium 4.

WebDriver and Configuration Adjustments

  • fix (35b39323): Adjusted the method of creating the Firefox WebDriver in util.py to align with Selenium 4.
  • fix (58e0315b): Updated various configuration options for compatibility with Selenium 4.

Code Refactoring and Optimization

  • fix (072fdaa0): Replaced all deprecated find_element_by_x and find_elements_by_x methods with find_element(s)(By.x) as per Selenium 4 requirements.

Merge request reports