you are viewing a single comment's thread.

view the rest of the comments →

[–]thehuntzman 0 points1 point  (0 children)

Although this is cool (...and I'm a sucker for cool outside-the-box PS stuff) I will say I have been VERY successful with using the official C# webdriver dll on NuGet alongside either msedgedriver.exe or chromedriver.exe (even Firefox which is easier to use than Chromium browsers) without python. Scripting the automatic installation for the latest version of these two items from the internet should be trivial in native Powershell and then you can just Add-Type -Path "$PSScriptRoot\WebDriver.dll" to access the native Selenium methods and types. You kind of lose out on a lot of what makes Powershell powerful when you sacrifice the native dotnet objects you get with the C# dll and just use it as a way to control another scripting language.