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.
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