Skip to content

Draft: Update QA for selenium-webdriver 4.8 upgrade

Désirée Chevalier requested to merge update-e2e-for-selenium-upgrade into master

What does this MR do and why?

Updated browsers.rb to reflect recent deprecations for Remote::Capabilities, and switched from Capabilities to Options after we switched to selenum-webdriver 4.8. https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES

WARN Selenium [DEPRECATION] [:caps_browsers] Remote::Capabilities.chrome is deprecated. Use Options.chrome instead.
WARN Selenium [DEPRECATION] [:capabilities] The :capabilities parameter for Selenium::WebDriver::Chrome::Driver is deprecated. Use :options argument with an instance of Selenium::WebDriver::Chrome::Driver instead.

I also went ahead and updated headless since that's going away soon: https://www.selenium.dev/blog/2023/headless-is-going-away/

I did still have to use some deprecated add_options for our current mobile tests using Sauce Labs but we're in the process of switching over to using Seleniod so those will be updated when that happens.

Update: Going to wait to proceed with this until Sauce Labs is deprecated to make it more streamlined.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Désirée Chevalier

Merge request reports