Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98939

I can't override default timeout value Selenium 3.14

$
0
0

I've gone through all the answers out there and nothing seems to be working for me, no matter what I do I can't override the default 60sec driver timeout for pageload. Even on Selenium server when I set the global timeout value it doesn't apply.

Breakpoint

ChromeOptions options = new ChromeOptions();
options = GetChromeOptions();

string projectPath = System.AppDomain.CurrentDomain.BaseDirectory;
IWebDriver test = new ChromeDriver(projectPath,options, TimeSpan.FromMinutes(10));
test.Manage().Timeouts().PageLoad = TimeSpan.FromMinutes(2);
test.Manage().Timeouts().ImplicitWait = TimeSpan.FromMinutes(2);

The options that are set:

private static ChromeOptions GetChromeOptions()
{
    var chromeOptions = new ChromeOptions();
    chromeOptions.AddArgument("no-sandbox");
    chromeOptions.AddUserProfilePreference("download.default_directory", Config.TempPath);
    chromeOptions.AddUserProfilePreference("download.prompt_for_download", false);
    chromeOptions.AddUserProfilePreference("disable-popup-blocking", "true");


    if (Config.IsHeadless)
    {
        chromeOptions.AddArgument("headless");
    }
    chromeOptions.AddArgument("--disable-dev-shm-usage");
    chromeOptions.AddArgument("proxy-server='direct://'");
    chromeOptions.AddArgument("proxy-bypass-list=*");
    chromeOptions.SetLoggingPreference(LogType.Browser, Config.BrowserErrorLoggingType);
    return chromeOptions;
}

Sever Config: Selenium Server Config


Viewing all articles
Browse latest Browse all 98939

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>