Created
June 18, 2012 10:36
-
-
Save illicitonion/2947804 to your computer and use it in GitHub Desktop.
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
| WebDriverServer.prototype.newDriver = function(window) { | |
| if (null == this.useNativeEvents) { | |
| var prefs = | |
| fxdriver.moz.getService("@mozilla.org/preferences-service;1", "nsIPrefBranch"); | |
| if (!prefs.prefHasUserValue("webdriver_enable_native_events")) { | |
| fxdriver.Logger.dumpn('webdriver_enable_native_events not set; defaulting to false'); | |
| } | |
| this.enableNativeEvents = | |
| prefs.prefHasUserValue("webdriver_enable_native_events") ? | |
| prefs.getBoolPref("webdriver_enable_native_events") : false; | |
| fxdriver.Logger.dumpn('Using native events: ' + this.enableNativeEvents); | |
| } | |
| window.fxdriver = new FirefoxDriver(this, this.enableNativeEvents, window); | |
| return window.fxdriver; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment