I use Selenium to browse multiple websites and store their markup.
In order to speed things up, I have set a pageLoadTimeout to throw an exception for sites that take too long to load:
driver.manage().timeouts().pageLoadTimeout(20, TimeUnit.SECONDS);
However, this seems not to work for websites that are constantly redirecting. As an example, take this site: https://www.pickupthevalues.com/SignUp.aspx.
Is there a way to get a timeout for such sites? I do not care about the content, I just want to be able to return from my driver.get(url)
statement.