adamdriscoll/selenium-powershell

Start-Driver -Browser Edge throws an error

Closed this issue · 1 comments

Hi gang!

I think this line:

'Edge' { $Driver = Start-EdgeDriver @PSBoundParameters; break }

... should be calling Start-SeEdgeDriver rather than just Start-EdgeDriver. In the 4.0 preview, I get this error when I try to start a (Chromium) Edge driver:

Start-EdgeDriver : The term 'Start-EdgeDriver' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files\WindowsPowerShell\Modules\selenium\4.0.0\Selenium.psm1:1802 char:32
+             'Edge' { $Driver = Start-EdgeDriver @PSBoundParameters; b ...
+                                ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Start-EdgeDriver:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Thanks.
Fixed for Preview2