Skip to content

Commit

Permalink
replace CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR with CapabilityType…
Browse files Browse the repository at this point in the history
….UNHANDLED_PROMPT_BEHAVIOUR
  • Loading branch information
rbri committed May 15, 2023
1 parent 338bf27 commit acb3fbd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/org/openqa/selenium/htmlunit/HtmlUnitAlert.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

package org.openqa.selenium.htmlunit;

import static org.openqa.selenium.remote.CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR;

import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
Expand All @@ -33,6 +31,7 @@
import org.openqa.selenium.NoAlertPresentException;
import org.openqa.selenium.UnexpectedAlertBehaviour;
import org.openqa.selenium.UnhandledAlertException;
import org.openqa.selenium.remote.CapabilityType;

/**
* Implementation of {@link Alert}.
Expand Down Expand Up @@ -129,7 +128,7 @@ public void setAutoAccept(final boolean autoAccept) {

public void handleBrowserCapabilities(final Capabilities capabilities) {
final UnexpectedAlertBehaviour behaviour = (UnexpectedAlertBehaviour) capabilities
.getCapability(UNEXPECTED_ALERT_BEHAVIOUR);
.getCapability(CapabilityType.UNHANDLED_PROMPT_BEHAVIOUR);
if (behaviour != null) {
this.unexpectedAlertBehaviour_ = behaviour;
}
Expand Down

0 comments on commit acb3fbd

Please sign in to comment.