Quaatso Education

Home Forums Selenium Forum "Timed out waiting for page load" Reply To: "Timed out waiting for page load"

Reply To: "Timed out waiting for page load"

Home Forums Selenium Forum "Timed out waiting for page load" Reply To: "Timed out waiting for page load"

#3999

Nandan Singh
Keymaster

Hi Naveen,

This website is very slow therefore you need to increase your timeout for 1 min or 2 min (depending on your internet connection speed). After this you can interact with the “register” element.

Following code is working at my end :

FirefoxDriver driver = new FirefoxDriver();

driver.manage().timeouts().implicitlyWait(1, TimeUnit.MINUTES);

driver.manage().timeouts().pageLoadTimeout(1, TimeUnit.MINUTES);

// opening  website

driver.get(“https://www.tjc.co.uk/”);

// find and click on register element

driver.findElement(By.cssSelector(“div[class=’header-top’]”)).findElement(By.cssSelector(“a[href=’https://www.tjc.co.uk/register’]”)).click();