Skip to content

Commit 11fbccd

Browse files
committed
Fixing UNHANDLED_PROMPT_BEHAVIOUR capability to work in legacy browsers
1 parent a1439c4 commit 11fbccd

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/remote/DesiredCapabilities.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ public void setCapability(String key, Object value) {
152152
capabilities.put(key, value);
153153
}
154154
} else if (UNEXPECTED_ALERT_BEHAVIOUR.equals(key)) {
155+
capabilities.put(UNEXPECTED_ALERT_BEHAVIOUR, value);
155156
capabilities.put(UNHANDLED_PROMPT_BEHAVIOUR, value);
156157
} else {
157158
capabilities.put(key, value);

java/client/test/org/openqa/selenium/UnexpectedAlertBehaviorTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import static org.openqa.selenium.WaitingConditions.elementTextToEqual;
2424
import static org.openqa.selenium.remote.CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR;
2525
import static org.openqa.selenium.testing.Driver.CHROME;
26-
import static org.openqa.selenium.testing.Driver.HTMLUNIT;
2726
import static org.openqa.selenium.testing.Driver.IE;
2827
import static org.openqa.selenium.testing.Driver.MARIONETTE;
2928
import static org.openqa.selenium.testing.Driver.PHANTOMJS;

0 commit comments

Comments
 (0)