31
31
import org .openqa .selenium .support .ui .ExpectedCondition ;
32
32
import org .openqa .selenium .testing .Ignore ;
33
33
import org .openqa .selenium .testing .JUnit4TestBase ;
34
- import org .openqa .selenium .testing .NoDriverAfterTest ;
34
+ import org .openqa .selenium .testing .SwitchToTopAfterTest ;
35
35
import org .openqa .selenium .testing .TestUtilities ;
36
36
import org .openqa .selenium .testing .drivers .SauceDriver ;
37
37
@@ -65,7 +65,7 @@ public void testSetsTheSizeOfTheCurrentWindow() {
65
65
changeSizeBy (-20 , -20 );
66
66
}
67
67
68
- @ NoDriverAfterTest // So that next test never starts with "inside a frame" base state.
68
+ @ SwitchToTopAfterTest
69
69
@ Test
70
70
public void testSetsTheSizeOfTheCurrentWindowFromFrame () {
71
71
// Browser window cannot be resized or moved on ANDROID (and most mobile platforms
@@ -80,7 +80,7 @@ public void testSetsTheSizeOfTheCurrentWindowFromFrame() {
80
80
changeSizeBy (-20 , -20 );
81
81
}
82
82
83
- @ NoDriverAfterTest // So that next test never starts with "inside a frame" base state.
83
+ @ SwitchToTopAfterTest
84
84
@ Test
85
85
public void testSetsTheSizeOfTheCurrentWindowFromIframe () {
86
86
// Browser window cannot be resized or moved on ANDROID (and most mobile platforms
@@ -148,7 +148,7 @@ public void testCanMaximizeTheWindow() throws InterruptedException {
148
148
maximize ();
149
149
}
150
150
151
- @ NoDriverAfterTest // So that next test never starts with "inside a frame" base state.
151
+ @ SwitchToTopAfterTest
152
152
@ Ignore (value = {PHANTOMJS }, reason = "Not yet implemented." )
153
153
@ Test
154
154
public void testCanMaximizeTheWindowFromFrame () throws InterruptedException {
@@ -165,7 +165,7 @@ public void testCanMaximizeTheWindowFromFrame() throws InterruptedException {
165
165
}
166
166
167
167
@ Ignore (value = {PHANTOMJS }, reason = "Not yet implemented." )
168
- @ NoDriverAfterTest // So that next test never starts with "inside a frame" base state.
168
+ @ SwitchToTopAfterTest
169
169
@ Test
170
170
public void testCanMaximizeTheWindowFromIframe () throws InterruptedException {
171
171
// Browser window cannot be resized or moved on ANDROID (and most mobile platforms
0 commit comments