I am trying to automate testing of an electron application (from third party vendor) using Selenium and C# and am getting the error: OpenQA.Selenium.WebDriverException : Cannot start the driver service on http://localhost:. Attached is the piece of code.
ChromeOptions options = new ChromeOptions();
ChromeDriverService chromeService = ChromeDriverService.CreateDefaultService(@"C:\Selenium\chromedriver_win32_1",
@"<path to exe of electron application>");
options.AddArgument("–no-sandbox");
options.AddArgument("–disable-dev-shm-usage");
driver = new ChromeDriver(chromeService, options, TimeSpan.FromSeconds(180));
Actual result: OpenQA.Selenium.WebDriverException : Cannot start the driver service on http://localhost:
Expected Result: driver instance is created successfully
NOTE: The electron application is launched successfully. Also when I remove the path to exe of electron application there is no error and driver instance is created successfully