tracks/vendor/selenium/scripts/user-extensions.js
2008-05-20 21:28:26 +01:00

9 lines
334 B
JavaScript

// All get* methods on the Selenium prototype result in
// store, assert, assertNot, verify, verifyNot, waitFor, and waitForNot commands.
// Will result in support for storeContextCount, assertContextCount, etc.
Selenium.prototype.getContextCount = function() {
return this.browserbot.getCurrentWindow().$$('.context').length;
};