方法“AddAdditionalCapability”没有重载需要 3 个参数
case BrowserType.Edge:
EdgeOptions edgeOptions = new EdgeOptions();
edgeOptions.AddAdditionalCapability("cloud:URL", "https://someone_jPLy2u:RaH4Q6U4zkmZYdn7qspW@hub-cloud.browserstack.com/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)
这适用于除边缘之外的其他浏览器