mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Restore custom user-extensions.js for selenium tests.
This commit is contained in:
parent
09f0322d45
commit
ba09aab89c
1 changed files with 6 additions and 0 deletions
6
vendor/plugins/selenium-on-rails/selenium-core/scripts/user-extensions.js
vendored
Normal file
6
vendor/plugins/selenium-on-rails/selenium-core/scripts/user-extensions.js
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
// 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue