+1 to @bobsilverberg's <code>WebDriverWait</code> suggestion.