tracks/vendor/selenium/scripts/user-extensions.js

10 lines
334 B
JavaScript
Raw Normal View History

// 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;
};