Skip to content

Commit

Permalink
Add native events under se:ieOptions. (SeleniumHQ#6183)
Browse files Browse the repository at this point in the history
Add disable native events function as the native event for ie is enabled by default
  • Loading branch information
KentGu authored and Grigory Mischenko committed Sep 20, 2018
1 parent 1d6f228 commit 1ad42db
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Object> ieOptions = new HashMap<>();
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 1ad42db

Please sign in to comment.