options = Options() options.binary_location = r'C:\Program Files\Mozilla Firefox\firefox.exe'
// Define the path to the folder containing geckodriver.exe string driverPath = @"C:\MyProject\Drivers\"; options = Options() options
By default, GeckoDriver picks a random free port between 10000 and 60000. If that specific port is locked by another application (like Docker, a local web server, or another WebDriver instance), the bind fails. a local web server
driver = webdriver.Firefox(service=service, options=options) or another WebDriver instance)
Add a NO_PROXY environment variable with the value localhost .