Module: EDSL::PageObject::Javascript::YUI
- Defined in:
- lib/edsl/page_object/javascript/yui.rb
Class Method Summary collapse
-
.pending_requests ⇒ Object
return the number of pending ajax requests.
Class Method Details
.pending_requests ⇒ Object
return the number of pending ajax requests
9 10 11 12 13 14 15 16 |
# File 'lib/edsl/page_object/javascript/yui.rb', line 9 def self.pending_requests "var inProgress=0 for(var i=0; i < YAHOO.util.Connect._transaction_id; i++) { if(YAHOO.util.Connect.isCallInProgress(i)) inProgress++; } return inProgress;" end |