Module: PageObject::Javascript::YUI
- Defined in:
- lib/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
8 9 10 11 12 13 14 15 |
# File 'lib/page-object/javascript/yui.rb', line 8 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 |