39
39
import org .openqa .selenium .testing .Ignore ;
40
40
import org .openqa .selenium .testing .JUnit4TestBase ;
41
41
import org .openqa .selenium .testing .NeedsFreshDriver ;
42
+ import org .openqa .selenium .testing .NotYetImplemented ;
42
43
43
44
public class JavascriptEnabledDriverTest extends JUnit4TestBase {
44
45
45
46
@ Test
46
- public void testDocumentShouldReflectLatestTitle () throws Exception {
47
+ public void testDocumentShouldReflectLatestTitle () {
47
48
driver .get (pages .javascriptPage );
48
49
49
50
assertThat (driver .getTitle (), equalTo ("Testing Javascript" ));
@@ -53,8 +54,8 @@ public void testDocumentShouldReflectLatestTitle() throws Exception {
53
54
}
54
55
55
56
@ Test
56
- @ Ignore ( MARIONETTE )
57
- public void testDocumentShouldReflectLatestDom () throws Exception {
57
+ @ NotYetImplemented ( value = MARIONETTE , reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1381519" )
58
+ public void testDocumentShouldReflectLatestDom () {
58
59
driver .get (pages .javascriptPage );
59
60
String currentText = driver .findElement (By .xpath ("//div[@id='dynamo']" )).getText ();
60
61
assertThat (currentText , equalTo ("What's for dinner?" ));
@@ -223,7 +224,7 @@ public void testShouldBeAbleToGetTheLocationOfAnElement() {
223
224
@ NeedsFreshDriver
224
225
@ Test
225
226
@ Ignore (value = SAFARI , reason = "issue 3693" )
226
- public void testShouldBeAbleToClickALinkThatClosesAWindow () throws Exception {
227
+ public void testShouldBeAbleToClickALinkThatClosesAWindow () {
227
228
driver .get (pages .javascriptPage );
228
229
229
230
String handle = driver .getWindowHandle ();
0 commit comments