lundi 21 décembre 2020

Selenium Add Additional Capability not working to set browser version (.NET Framework)

I need to test my program on different versions of different browsers. To start, I choose ChromeDriver with the following code:

using OpenQA.Selenium.Chrome;

ChromeOptions Options = new ChromeOptions();
Options.PlatformName = "windows";
Options.AddAdditionalCapability("platform", "WIN10", true);
Options.AddAdditionalCapability("version", "84", true);
ChromeDriver driver = new ChromeDriver(Options);

When it starts the webdriver, I go to chrome settings and I see that chrome is still version 87

How can I start driver with specific version number?

Here is the screenshot of the page shows the version of chrome

Aucun commentaire:

Enregistrer un commentaire