I created a service that start my application on (on Windows all works well) but when I this command:

sudo systemctl start ods.service

I get:

PAC Support disabled because there is no system implementation
OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:35818/session timed out after 60 seconds. —> System.Net.WebException: The operation has timed out.

UPDATE

I tried right now the FirefoxDriver and seems works, but I would like to use Chrome.

UPDATE 2

Full error details:

enter image description here

Code:

public class Program 
{
    public static async Task Main(string[] args)
    {
        try
        {
            var chromeOpts = new ChromeOptions();
            chromeOpts.AddArgument("headless");
            chromeOpts.AddArgument("no-sandbox");

            var chromeDriverService = ChromeDriverService.CreateDefaultService();
            driver = new ChromeDriver(chromeDriverService, chromeOpts, TimeSpan.FromMinutes(2));
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.ToString());
        }
    }
}



Source link https://sqa.stackexchange.com/questions/35087/cannot-run-dotnet-selenium--on-linux

LEAVE A REPLY

Please enter your comment!
Please enter your name here