@@ -57,8 +57,8 @@ public void quitDriver() throws Exception {
5757 }
5858 }
5959
60+ @ JavascriptEnabled
6061 @ Test
61- @ Ignore (value = HTMLUNIT , reason ="test should enable JavaScript" )
6262 public void canAcceptUnhandledAlert () {
6363 runScenarioWithUnhandledAlert (UnexpectedAlertBehaviour .ACCEPT , "This is a default value" );
6464 }
@@ -77,29 +77,29 @@ public void dismissUnhandledAlertsByDefault() {
7777 runScenarioWithUnhandledAlert (null , "null" );
7878 }
7979
80+ @ JavascriptEnabled
8081 @ Test
8182 @ Ignore (value = CHROME , reason = "Unstable Chrome behavior" )
82- @ Ignore (value = HTMLUNIT , reason = "test should enable JavaScript" )
8383 public void canIgnoreUnhandledAlert () {
8484 Throwable t = catchThrowable (
8585 () -> runScenarioWithUnhandledAlert (UnexpectedAlertBehaviour .IGNORE , "Text ignored" ));
8686 assertThat (t , instanceOf (UnhandledAlertException .class ));
8787 driver2 .switchTo ().alert ().dismiss ();
8888 }
8989
90+ @ JavascriptEnabled
9091 @ Test
91- @ Ignore (value = HTMLUNIT , reason ="test should enable JavaScript" )
9292 public void canSpecifyUnhandledAlertBehaviourUsingCapabilities () {
9393 desiredCaps .setCapability (UNEXPECTED_ALERT_BEHAVIOUR , UnexpectedAlertBehaviour .ACCEPT );
9494 driver2 = new WebDriverBuilder ().setDesiredCapabilities (desiredCaps ).get ();
9595
9696 runScenarioWithUnhandledAlert ("This is a default value" );
9797 }
9898
99+ @ JavascriptEnabled
99100 @ Test
100101 @ Ignore (value = IE , reason = "required capabilities not implemented" )
101102 @ Ignore (value = CHROME , reason = "required capabilities not implemented" )
102- @ Ignore (value = HTMLUNIT , reason = "test should enable JavaScript" )
103103 public void requiredUnhandledAlertCapabilityHasPriorityOverDesired () {
104104 // TODO: Resolve why this test doesn't work on the remote server
105105 assumeTrue (TestUtilities .isLocal ());
0 commit comments