I'm getting the following error when I try to open the EdgeDriver.
OpenQA.Selenium.WebDriverException: 'Cannot start the driver service on http://localhost:20548/'
The FirefoxDriver and ChromeDriver work just fine.
This is an issue with the driver?
There is nothing running on port 20548. The below code returns nothing.
C:\WINDOWS\system32>netstat -a -o | find "20548"
Did I need to do anything else besides downlowd the Selenium.WebDriver.MicrosoftWebDriver NuGet into my project?
The only software I need installed on my computer is the latest version of Microsoft Edge correct?
I tried running MicrosoftWebDriver.exe that was in the bin directory of my project (project name, Test). This gave me the answer I needed.
I downloaded the correct driver from the following website:
https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/#downloads
========================================================
Further Update & Solution: How to know which driver to get ...
I finally found the correct driver. There are two ways to get the driver.
Method 1: how to know which driver to download
Method 2: how to know which driver to download
Click in install button. everything will automatically be configured in your project so you can automatically start using the driver
Add the few lines of Selenium code to your test project which will open the edge browser (shown in the original question).