Reducing the impact of Chrome updates #850
|
We noticed that Chrome updates, what come automatically (and without us being able to influence them in any way) with GitHub Actions runner image updates, make our UI tests unreliable. This is the most recent example: Lombiq/Open-Source-Orchard-Core-Extensions#991. Visual verification tests are another example where random (font) rendering changes can break them even if we have generally suitable tolerances. But other random breakage happens routinely too. Do you have any suggestion to make this situation better? Thanks in advance! |
Replies: 1 comment 4 replies
|
You can pin the version of Chrome you want to use on CI and locally. And probably upgrade that version once per few months. I would start with trying Selenium Manager for that. Now it also supports browser setup in addition to drivers setup. For Chrome it will download Chrome for Testing (CfT) of the version you specify. For basic configuration all you need is just specify the ChromeOptions options = new ChromeOptions();
options.BrowserVersion = "132";In such case remove Atata functionality of driver setup, like Alternatively, you can take a look at Selenium Grid to manage browsers, quite a powerful tool. There are Selenium Grid Docker images. Also there are paid third-party services like BrowserStack, Sauce Labs, etc. |
You can pin the version of Chrome you want to use on CI and locally. And probably upgrade that version once per few months.
I would start with trying Selenium Manager for that. Now it also supports browser setup in addition to drivers setup. For Chrome it will download Chrome for Testing (CfT) of the version you specify. For basic configuration all you need is just specify the
BrowserVersionproperty ofChromeOptions.In such case remove Atata functionality of driver setup, like
AutoSetUpDriverToUse. Let Selenium Manager set up browser and driver automatically.Alternatively, you can take a look at Selenium Grid …