No overload for method 'AddAdditionalCapability' takes 3 argument
case BrowserType.Edge:
EdgeOptions edgeOptions = new EdgeOptions();
edgeOptions.AddAdditionalCapability("cloud:URL", "https://someone_jPLy2u:[email protected]/wd/hub", true);
edgeOptions.AddAdditionalCapability("os", "Windows", true);
edgeOptions.AddAdditionalCapability("os_version", "10", true);
edgeOptions.AddAdditionalCapability("browser_version", browserVersion, true);
this.webDriver = new EdgeDriver(edgeOptions: edgeOptions, token: "something");
this.reporter = ((EdgeDriver)webDriver).Report();
this.reporter.DisableCommandReports(DriverCommandsFilter.Passing)
This works for the rest of the browsers except for edge
Yes, AddAdditionalCapability for
EdgeOptions
doesn't have overload with 3 arguments and the Selenium team won't add a three-argument overload in the future. For the detailed information, you can refer to this link.Selenium team is planning to return the method to its original name in a future revision. I assume that you're using Selenium 3 and I suggest that you use a newer version Selenium 4. Starting from version 4.0,
AddAdditionalCapability
is deprecated and you can useAddAdditionalOption(name, capabilityValue)
and the capability will be global.