25
25
import static org .openqa .selenium .support .ui .ExpectedConditions .presenceOfElementLocated ;
26
26
import static org .openqa .selenium .support .ui .ExpectedConditions .titleIs ;
27
27
import static org .openqa .selenium .testing .drivers .Browser .CHROME ;
28
- import static org .openqa .selenium .testing .drivers .Browser .CHROMIUMEDGE ;
29
- import static org .openqa .selenium .testing .drivers .Browser .EDGE ;
30
- import static org .openqa .selenium .testing .drivers .Browser .FIREFOX ;
28
+ import static org .openqa .selenium .testing .drivers .Browser .EDGIUM ;
29
+ import static org .openqa .selenium .testing .drivers .Browser .EDGE_HTML ;
30
+ import static org .openqa .selenium .testing .drivers .Browser .LEGACY_FIREFOX_XPI ;
31
31
import static org .openqa .selenium .testing .drivers .Browser .HTMLUNIT ;
32
32
import static org .openqa .selenium .testing .drivers .Browser .IE ;
33
- import static org .openqa .selenium .testing .drivers .Browser .MARIONETTE ;
33
+ import static org .openqa .selenium .testing .drivers .Browser .FIREFOX ;
34
34
import static org .openqa .selenium .testing .drivers .Browser .SAFARI ;
35
35
import static org .openqa .selenium .testing .TestUtilities .getFirefoxVersion ;
36
36
import static org .openqa .selenium .testing .TestUtilities .isFirefox ;
@@ -388,11 +388,11 @@ public void testShouldHandleAlertOnPageLoadUsingGet() {
388
388
389
389
@ Test
390
390
@ Ignore (value = CHROME , reason = "Hangs" )
391
- @ Ignore (value = CHROMIUMEDGE , reason = "Hangs" )
392
- @ Ignore (FIREFOX )
391
+ @ Ignore (value = EDGIUM , reason = "Hangs" )
392
+ @ Ignore (LEGACY_FIREFOX_XPI )
393
393
@ Ignore (value = IE , reason = "Fails in versions 6 and 7" )
394
394
@ Ignore (SAFARI )
395
- @ Ignore (EDGE )
395
+ @ Ignore (EDGE_HTML )
396
396
@ NoDriverAfterTest
397
397
public void testShouldNotHandleAlertInAnotherWindow () {
398
398
String pageWithOnLoad = appServer .create (new Page ()
@@ -412,10 +412,10 @@ public void testShouldNotHandleAlertInAnotherWindow() {
412
412
413
413
@ Test
414
414
@ Ignore (value = CHROME , reason = "Chrome does not trigger alerts on unload" )
415
- @ Ignore (value = CHROMIUMEDGE , reason = "Edge does not trigger alerts on unload" )
415
+ @ Ignore (value = EDGIUM , reason = "Edge does not trigger alerts on unload" )
416
416
@ NotYetImplemented (HTMLUNIT )
417
417
@ Ignore (SAFARI )
418
- @ NotYetImplemented (EDGE )
418
+ @ NotYetImplemented (EDGE_HTML )
419
419
public void testShouldHandleAlertOnPageUnload () {
420
420
assumeFalse ("Firefox 27+ does not trigger alerts on before unload" ,
421
421
isFirefox (driver ) && getFirefoxVersion (driver ) >= 27 );
@@ -438,11 +438,11 @@ public void testShouldHandleAlertOnPageUnload() {
438
438
}
439
439
440
440
@ Test
441
- @ Ignore (value = FIREFOX , reason = "Non W3C conformant" )
441
+ @ Ignore (value = LEGACY_FIREFOX_XPI , reason = "Non W3C conformant" )
442
442
@ Ignore (value = HTMLUNIT , reason = "Non W3C conformant" )
443
443
@ Ignore (value = CHROME , reason = "Non W3C conformant" )
444
- @ Ignore (value = CHROMIUMEDGE , reason = "Non W3C conformant" )
445
- @ Ignore (EDGE )
444
+ @ Ignore (value = EDGIUM , reason = "Non W3C conformant" )
445
+ @ Ignore (EDGE_HTML )
446
446
public void testShouldImplicitlyHandleAlertOnPageBeforeUnload () {
447
447
String blank = appServer .create (new Page ().withTitle ("Success" ));
448
448
driver .get (appServer .create (new Page ()
@@ -458,11 +458,11 @@ public void testShouldImplicitlyHandleAlertOnPageBeforeUnload() {
458
458
459
459
@ Test
460
460
@ Ignore (value = CHROME , reason = "Chrome does not trigger alerts on unload" )
461
- @ Ignore (value = CHROMIUMEDGE , reason = "Chrome does not trigger alerts on unload" )
461
+ @ Ignore (value = EDGIUM , reason = "Chrome does not trigger alerts on unload" )
462
462
@ NotYetImplemented (HTMLUNIT )
463
463
@ Ignore (SAFARI )
464
464
@ Ignore (value = IE , reason = "IE driver automatically dismisses alerts on window close" )
465
- @ NotYetImplemented (EDGE )
465
+ @ NotYetImplemented (EDGE_HTML )
466
466
public void testShouldHandleAlertOnWindowClose () {
467
467
assumeFalse ("Firefox 27+ does not trigger alerts on unload" ,
468
468
isFirefox (driver ) && getFirefoxVersion (driver ) >= 27 );
@@ -494,9 +494,9 @@ public void testShouldHandleAlertOnWindowClose() {
494
494
495
495
@ Test
496
496
@ Ignore (value = HTMLUNIT , reason = "https://github.com/SeleniumHQ/htmlunit-driver/issues/57" )
497
- @ NotYetImplemented (value = MARIONETTE ,
497
+ @ NotYetImplemented (value = FIREFOX ,
498
498
reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1279211" )
499
- @ NotYetImplemented (EDGE )
499
+ @ NotYetImplemented (EDGE_HTML )
500
500
public void testIncludesAlertTextInUnhandledAlertException () {
501
501
driver .get (alertPage ("cheese" ));
502
502
0 commit comments