[Wtr-general] click() in infinite loop while working with orkut
Bret Pettichord
bret at pettichord.com
Thu Jan 4 11:59:33 EST 2007
Manish Sapariya wrote:
> Thanks Bret.
> It worked.
>
> I would be glad if you can me point to anything that can explain
> the root cause of the problem and whats the solution.
> Thanks again.
> -Manish
>
The root cause of the problem is that many methods, including "click"
automatically wait until a browser is finished loading a page. This
behavior is desirable when working with traditional web applications,
but gives problems with ajaxy applications like orkut, because they are
constantly loading data into the browser.
With these apps, you'll have to use click! and then you'll also have to
use wait_until to delay your script until the event has been processed
sufficiently.
Bret
More information about the Wtr-general
mailing list