-
Notifications
You must be signed in to change notification settings - Fork 15
Edge Settings
knysh edited this page May 26, 2020
·
2 revisions
Microsoft Edge versions 18 and 19 requirements to start and use browser via selenium webdriver:
- Go to Settings > Update and Security > For Developer and then select “Developer mode”.
For Microsoft Edge builds prior to 18, install a previous release of WebDriver:
- Download webdriver from Microsoft Edge Legacy
- You need to override Browser property in BrowserFactory and create browser like it is done below:
var browserProfile = AqualityServices.Get<IBrowserProfile>();
var commandTimeout = AqualityServices.Get<ITimeoutConfiguration>().Command;
var driverSettings = browserProfile.DriverSettings;
RemoteWebDriver driver = new EdgeDriver("{path to folder, where you download MicrosoftWebDriver.exe}",
(EdgeOptions)driverSettings.DriverOptions, commandTimeout);
new Browser(driver);