Skip to content

Instantly share code, notes, and snippets.

@conarro
Created December 30, 2014 15:20
Show Gist options
  • Save conarro/0b7a217fc10171e95582 to your computer and use it in GitHub Desktop.
Save conarro/0b7a217fc10171e95582 to your computer and use it in GitHub Desktop.
Sample Selenium IDE User Extension
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