Selenium: Firefox with WebDriver: Page load issue?

You don't need the while loop, you could use implicitlyWait when you initialize the driver. This will make the driver poll for the presence of an element for 90 seconds before throwing out element not found exception driver.manage().timeouts(). ImplicitlyWait(90, TimeUnit.

SECONDS); driver. FindElement(By. Xpath("//atext()='New Question'")).click().

You don't need the while loop, you could use implicitlyWait when you initialize the driver. This will make the driver poll for the presence of an element for 90 seconds before throwing out element not found exception. Driver.manage().timeouts().

ImplicitlyWait(90, TimeUnit. SECONDS); driver. FindElement(By.

Xpath("//atext()='New Question'")).click().

Thanks Nilesh and prestomanifesto, but I had tried 'WebDriverWait' and 'implicitlyWait' before putting in the while loop (which did not work as well) and it did not work. I did a bit more digging and 'seem' to have found a solution as follows. There is a 'search' text field that gets focus once the page has completed loading.

I used the 'activeElement' to check if the focus is 'truly' set. While (!driver. FindElement(By.Id("searchValue")).isEnabled()) { WebElement currActiveElement = driver.switchTo().activeElement(); if (currActiveElement.

GetAttribute("id"). Equals("searchValue")) { break; } Thread. Sleep(1000); }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions