[Windmill-dev] How to wait correctly?

Niko Sams ns at vivid-planet.com
Tue Apr 29 02:55:19 PDT 2008


Hi,

I'm new in Windmill and trying to use it for Ajax applications. I created a
first test, see the attached test.json. Run it on http://www.vivid-planet.com/

That /test/slow/ is a page that has 5sec sleep before any response.
Additionally I added some JavaScript (see source) that adds async an
element.

How should I use the waits to test this page?

thanks,
Niko
-------------- next part --------------
{"method": "open", "params": {"url" : "/"}}
{"method": "waits.forPageLoad", "params": {"timeout": 10000} }
{"method": "open", "params": {"url" : "/test/slow/"}}
{"method": "waits.forPageLoad", "params": {"timeout": 30000} }
{"method": "waits.forElement", "params": {"id": "testlink", "timeout": 30000} }
{"method": "waits.forElement", "params": {"id": "foo", "timeout": 30000} }
{"method": "click", "params": {"id" : "testlink"}}


More information about the Windmill-dev mailing list