From 1ad42dbfed38a6f8288f08970c8fee40be54dd1f Mon Sep 17 00:00:00 2001 From: KentGu Date: Tue, 24 Jul 2018 18:18:25 +0800 Subject: [PATCH] Add native events under se:ieOptions. (#6183) Add disable native events function as the native event for ie is enabled by default --- .../src/org/openqa/selenium/ie/InternetExplorerOptions.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/java/client/src/org/openqa/selenium/ie/InternetExplorerOptions.java b/java/client/src/org/openqa/selenium/ie/InternetExplorerOptions.java index ab0283c05f0b1..81d1a350adef7 100644 --- a/java/client/src/org/openqa/selenium/ie/InternetExplorerOptions.java +++ b/java/client/src/org/openqa/selenium/ie/InternetExplorerOptions.java @@ -92,6 +92,7 @@ public class InternetExplorerOptions extends MutableCapabilities { .add(REQUIRE_WINDOW_FOCUS) .add(UPLOAD_DIALOG_TIMEOUT) .add(VALIDATE_COOKIE_DOCUMENT_TYPE) + .add(NATIVE_EVENTS) .build(); private Map ieOptions = new HashMap<>(); @@ -207,10 +208,15 @@ public InternetExplorerOptions introduceFlakinessByIgnoringSecurityDomains() { return amend(INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true); } + @Deprecated public InternetExplorerOptions enableNativeEvents() { return amend(NATIVE_EVENTS, true); } + public InternetExplorerOptions disableNativeEvents() { + return amend(NATIVE_EVENTS, false); + } + public InternetExplorerOptions ignoreZoomSettings() { return amend(IGNORE_ZOOM_SETTING, true); }