OpenQA.Selenium.WebDriverException: Cannot start the driver service on http://localhost:XXXX/
Do not specify a port manually unless necessary. Remove port=4444 from your service constructor. OpenQA
The FirefoxDriver cannot find the geckodriver.exe file in your application's bin folder or the path specified in your code. Temporarily disable Windows Defender Firewall or add an
static void Main()
// Define the service using that path FirefoxDriverService service = FirefoxDriverService.CreateDefaultService(driverPath); OpenQA
geckodriver.