Created
December 30, 2014 15:20
-
-
Save conarro/0b7a217fc10171e95582 to your computer and use it in GitHub Desktop.
Sample Selenium IDE User Extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Selenium.prototype.doTypePassword = function(locator, text) { | |
/** | |
* Sets the value of an input field the provided text | |
* | |
* @param locator an <a href="#locators">element locator</a> | |
*/ | |
// All locator-strategies are automatically handled by "findElement" | |
var element = this.page().findElement(locator); | |
this.browserbot.replaceText(element, text); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment