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

Setting up Edge driver works only if a version is mentioned #334

Open
CNIstrate opened this issue Sep 4, 2024 · 1 comment
Open

Setting up Edge driver works only if a version is mentioned #334

CNIstrate opened this issue Sep 4, 2024 · 1 comment

Comments

@CNIstrate
Copy link

Hi!
I started having issues with Edge driver when setting it up.

Failing code:
new DriverManager().SetUpDriver(new EdgeConfig());
image

Working code:
image

Seems like edge is properly set up only if a version is mentioned.

Any ideas regarding this issue?

Thanks!

@CNIstrate
Copy link
Author

As a current workaround, I am using this method to get the current Edge version installed on my windows machine and Azure Agents.

private static string GetEdgeVersion()
{
    var localMachine = @"HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}";
    var edgeVersion = Registry.GetValue(localMachine, "pv", null);
    return edgeVersion.ToString();
}

My Azure pipeline has a script which installs all browsers I need before running the tests to ensure I have latest version on them, so this way I can pass the latest version of the browser in the code based on what I have installed on my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant