Skip to content

Instantly share code, notes, and snippets.

@mlb5000
Created December 15, 2012 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlb5000/4290232 to your computer and use it in GitHub Desktop.
Save mlb5000/4290232 to your computer and use it in GitHub Desktop.
Selenium user extension to deal with Internet Explorer compatibility issues
//Add this to your Selenium user-extensions.js file
Selenium.prototype.doHyperFocus = function(locator) {
this.doWindowFocus();
this.doFocus(locator);
};
Selenium.prototype.doCompatibleClick = function(locator) {
this.doHyperFocus();
this.doClick(locator);
};
Selenium.prototype.doCompatibleType = function(locator, value) {
this.doHyperFocus();
this.doType(locator, value)
}
@Poonam12031990
Copy link

hey buddy,
do we have to use these commands for only click and type? bcoz i added the above func and still it says "unknown command"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment