Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix command execution delay of WebDriver for .NET Core 2.0 #101

Closed
YevgeniyShunevych opened this issue Oct 12, 2017 · 0 comments

Comments

1 participant
@YevgeniyShunevych
Copy link
Member

commented Oct 12, 2017

There is a bug in Selenium.WebDriver v3.6.0 for .NET Core 2.0: each WebDriver request takes extra 1 second. It reproduces for Chrome, Firefox, etc.

Link to the bug: dotnet/corefx#24104.

Fix

Add method to DriverAtataContextBuilder<TBuilder>:

public TBuilder WithFixOfCommandExecutionDelay();

The fix does: finds HttpCommandExecutor instance of RemoteWebDriver instance and updates its remoteServerUri field by replacing "locahost" with "127.0.0.1".

Usage

AtataContext.Configure().
    UseChrome().
        WithFixOfCommandExecutionDelay().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.