Skip to content

Edge Webdriver Naming Issues #210

Open
@DarylGraves

Description

@DarylGraves

As a Chromium Edge user, I tried to run $Driver = Start-SeEdge but this warning appears:

WARNING: Edge driver is . Windows is 10.0.19042.0. If the driver is out-of-date, update it as a Windows feature,
and then delete C:\Program Files\WindowsPowerShell\Modules\Selenium\3.0.1\assemblies\MicrosoftWebDriver.exe
Exception: C:\Program Files\WindowsPowerShell\Modules\selenium\3.0.1\Selenium.psm1:375
Line |
 375 |          $Driver = [OpenQA.Selenium.Edge.EdgeDriver]::new($service , $ …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling ".ctor" with "2" argument(s): "Object reference not set to an instance of an object."

There's two things I did to fix:

  • Download the latest Edge Driver and place it into the Program Files folder above
  • Rename the Edge Driver from MicrosoftEdgeDriver.exe to MicrosoftWebDriver.exe (it looks like they've renamed the driver in more recent downloads).

You can't really get round the fact Microsoft decided to change the naming convention but it may be better not to supply WebDrivers as it causes moving goalposts. Instead, maybe prompt the user to download the latest version and move it to the correct location themselves. This would also help force the user to user the most recent version at time of deployment.

Also, thank you for putting the effort into this, I'm really looking forward to using it more!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions