File tree Expand file tree Collapse file tree
src/main/java/org/openqa/selenium/htmlunit Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818package org .openqa .selenium .htmlunit ;
1919
20- import static org .openqa .selenium .remote .CapabilityType .UNEXPECTED_ALERT_BEHAVIOUR ;
21-
2220import java .util .concurrent .TimeUnit ;
2321import java .util .concurrent .locks .Condition ;
2422import java .util .concurrent .locks .Lock ;
3331import org .openqa .selenium .NoAlertPresentException ;
3432import org .openqa .selenium .UnexpectedAlertBehaviour ;
3533import org .openqa .selenium .UnhandledAlertException ;
34+ import org .openqa .selenium .remote .CapabilityType ;
3635
3736/**
3837 * Implementation of {@link Alert}.
@@ -129,7 +128,7 @@ public void setAutoAccept(final boolean autoAccept) {
129128
130129 public void handleBrowserCapabilities (final Capabilities capabilities ) {
131130 final UnexpectedAlertBehaviour behaviour = (UnexpectedAlertBehaviour ) capabilities
132- .getCapability (UNEXPECTED_ALERT_BEHAVIOUR );
131+ .getCapability (CapabilityType . UNHANDLED_PROMPT_BEHAVIOUR );
133132 if (behaviour != null ) {
134133 this .unexpectedAlertBehaviour_ = behaviour ;
135134 }
You can’t perform that action at this time.
0 commit comments