Created
December 15, 2012 01:16
-
-
Save mlb5000/4290232 to your computer and use it in GitHub Desktop.
Selenium user extension to deal with Internet Explorer compatibility issues
This file contains 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
//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) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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"