|
34 | 34 | import org.openqa.selenium.Platform;
|
35 | 35 | import org.openqa.selenium.Proxy;
|
36 | 36 | import org.openqa.selenium.WebDriverException;
|
37 |
| -import org.openqa.selenium.firefox.internal.MarionetteConnection; |
38 | 37 | import org.openqa.selenium.firefox.internal.NewProfileExtensionConnection;
|
39 | 38 | import org.openqa.selenium.firefox.internal.ProfilesIni;
|
40 | 39 | import org.openqa.selenium.internal.Killable;
|
@@ -107,10 +106,6 @@ public static final class SystemProperty {
|
107 | 106 | // For now, only enable native events on Windows
|
108 | 107 | public static final boolean DEFAULT_ENABLE_NATIVE_EVENTS = Platform.getCurrent().is(WINDOWS);
|
109 | 108 |
|
110 |
| - // For now, only enable native events on Windows |
111 |
| - public static final boolean USE_MARIONETTE = Boolean.parseBoolean( |
112 |
| - System.getProperty(SystemProperty.DRIVER_USE_MARIONETTE)); |
113 |
| - |
114 | 109 | // Accept untrusted SSL certificates.
|
115 | 110 | @Deprecated
|
116 | 111 | public static final boolean ACCEPT_UNTRUSTED_CERTIFICATES = true;
|
@@ -300,15 +295,7 @@ protected ExtensionConnection connectTo(FirefoxBinary binary, FirefoxProfile pro
|
300 | 295 | Lock lock = obtainLock(profile);
|
301 | 296 | try {
|
302 | 297 | FirefoxBinary bin = binary == null ? new FirefoxBinary() : binary;
|
303 |
| - |
304 |
| - if (USE_MARIONETTE) { |
305 |
| - System.out.println(String.format( |
306 |
| - "*** Use MarionetteDriver class instead of setting %s property ***", |
307 |
| - SystemProperty.DRIVER_USE_MARIONETTE)); |
308 |
| - return new MarionetteConnection(lock, bin, profile, host); |
309 |
| - } else { |
310 |
| - return new NewProfileExtensionConnection(lock, bin, profile, host); |
311 |
| - } |
| 298 | + return new NewProfileExtensionConnection(lock, bin, profile, host); |
312 | 299 | } catch (Exception e) {
|
313 | 300 | throw new WebDriverException(e);
|
314 | 301 | }
|
|
0 commit comments