I'm getting timeouts when executing scripts with Selenium no matter what I try and do to avoid them.
I first set the timeouts to something ridiculously long:
_driver.Manage().Timeouts().SetScriptTimeout(TimeSpan.FromMinutes(30));
_driver.Manage().Timeouts().SetPageLoadTimeout(TimeSpan.FromMinutes(30));
Later, I run a script which is expected to take a long time (it's doing a long running POST request). No mater whether I use ExecuteScript
or ExecuteAsyncScript
, the request times out at 60 seconds.
Is there anything I can do to avoid this? Even a hack or workaround would be good at this point.