[Windmill-dev] How to wait correctly?

Adam Christian adam.christian at gmail.com
Tue Apr 29 23:24:57 PDT 2008


Hey Niko, the waits.forPageLoad method is now automatically detected/ 
called when a page is loaded.

However I do think this should just work, and may be a bug in my wait  
code, this code is hairy and has had it's share of bugs. I will put in  
some cycles in the morning making sure this all works as expected and  
will send another mail to the list when I get something checked in.

Adam

On Apr 29, 2008, at 11:22 PM, Niko Sams wrote:

> Hi,
>
>> Niko, first of I'm glad to see you trying out windmill.
> I'm currently im the phase of evaluating the best test-tool.
>
>> Could you please describe the behavior that you are seeing so that I
>> know where to start looking for the solution? We certainly _should_  
>> be
>> supporting exactly what you are trying to do so I would like to get  
>> to
>> the bottom of it.
> Again my test: (run on http://www.vivid-planet.com/)
> {"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"}}
>
> The second waits.forPageLoad doesn't wait long enough. The  
> waits.forElement
> do some kind of waiting - they turn from yellow to green correctly -  
> but the
> execution of the test continues without waiting for them. So the  
> click can't be
> successful.
> (/test/slow/ is manually slowed down by a server-script)
>
>> Also what exactly is the behavior you would  _like_ to see, this way
>> there isn't any confusion from my side.
> I'd like to run my test - with those async/slow parts.
>
> It would be very helpful if you could tell me what I have done wrong/ 
> could do better -
> or if it _should_ work and just doesn't do for me.
>
> thanks!
> Niko



More information about the Windmill-dev mailing list