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
Closed
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

YevgeniyShunevych 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: https://github.com/dotnet/corefx/issues/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
Labels
Development

No branches or pull requests

1 participant