News for hackers. Stuff that matters.
Re:How to make Selenium tests reliable, scalable, and mainta... by crdoconnor on Wednesday July 22, 2015 @04:54AM (#9928417)
>Is there a better solution

Yes. And it's pretty simple:

    WebDriver driver = new FirefoxDriver();
    driver.get("http://somedomain/url_that_delays_loading");
    WebElement myDynamicElement = (new WebDriverWait(driver, 10))
  .until(ExpectedConditions.presenceOfElementLocated(By.id("myDynamicElement")));
From : http://docs.seleniumhq.org/docs/04_webdriver_advanced.jsp
Re:How to make Selenium tests reliable, scalable, and mainta... by drothlis on Wednesday July 22, 2015 @11:17AM (#9930098)
I'm not sure this satisfies your parent poster's requirement of: "if it fails, you know about it pretty soon, without the need for long timeouts."
Re:How to make Selenium tests reliable, scalable, and mainta... by crdoconnor on Wednesday July 22, 2015 @11:27PM (#9933810)
Well, you need to have a timeout.

You can make the timeout shorter when running the test on a dev environment, though, so you get quicker feedback about errors.