use jQuery to wait for ajax operations to complete

This commit is contained in:
Lee Bankewitz 2008-10-13 18:42:48 -04:00
parent 46ced27dbd
commit bf924ba128
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ module Webrat
end
def wait_for_ajax(timeout = 15000)
@selenium.wait_for_condition "window.Ajax.activeRequestCount == 0", timeout
@selenium.wait_for_condition "Ajax.activeRequestCount == 0", timeout
end
def wait_for_effects(timeout = 15000)