Re: [rspec-users] Story runner + selenium-rc + wait_for_xxxx

2008-04-16 Thread Mark Van Holstyn
I have done this in the past... def wait_for_ajax(timeout = 3) wait_for_condition "window.Ajax.activeRequestCount == 0", timeout end def wait_for_effects(timeout = 3) wait_for_condition "window.Effect.Queue.size() == 0", timeout end Mark On Wed, Apr 16, 2008 at 3:57 PM, Andy Watts <

Re: [rspec-users] Story runner + selenium-rc + wait_for_xxxx

2008-04-16 Thread aslak hellesoy
On Wed, Apr 16, 2008 at 9:57 PM, Andy Watts <[EMAIL PROTECTED]> wrote: > > Hi, > > I've got a story working with selenium-rc, but am stuck writing ajax-aware > steps. > > How are people coding their story steps to wait for an Ajax event to > complete? > Have you asked the selenium list about

[rspec-users] Story runner + selenium-rc + wait_for_xxxx

2008-04-16 Thread Andy Watts
Hi, I've got a story working with selenium-rc, but am stuck writing ajax-aware steps. How are people coding their story steps to wait for an Ajax event to complete? Here's what I've looked at so far. $browser.wait_for_element_present Looks Ideal, but not in selenium-ruby-client-drivers for s