Story runner + selenium-rc + wait_for_xxxx
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 some reason.
def wait_for_ajax
$browser.wait_for_condition("selenium.browserbot.getCurrentWindow().ServerConnection.isPending() == false", 2000)
end
This helper looked promising, but it returns
SeleniumCommandError: selenium.browserbot.getCurrentWindow().ServerConnection has no properties
Many Thanks
Andy