Skip to content

Commit

Permalink
Adding 1 second delay after creation of EdgeDriver
Browse files Browse the repository at this point in the history
This is to work around a bug in the Edge driver from Microsoft, to prevent
a race condition between when the browser is ready and before the first
navigation. This will be reverted after the driver is fixed.
  • Loading branch information
jimevans committed May 24, 2016
1 parent 1edd075 commit ac7c965
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dotnet/src/webdriver/Edge/EdgeDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public EdgeDriver(EdgeDriverService service, EdgeOptions options)
public EdgeDriver(EdgeDriverService service, EdgeOptions options, TimeSpan commandTimeout)
: base(new DriverServiceCommandExecutor(service, commandTimeout), ConvertOptionsToCapabilities(options))
{
System.Threading.Thread.Sleep(1000);
}

private static ICapabilities ConvertOptionsToCapabilities(EdgeOptions options)
Expand Down

0 comments on commit ac7c965

Please sign in to comment.