File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
java/client/test/org/openqa/selenium Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 49
49
50
50
public class WindowSwitchingTest extends JUnit4TestBase {
51
51
52
- // @Ignore({MARIONETTE})
52
+ @ Ignore ({MARIONETTE })
53
53
@ NoDriverAfterTest // So that next test never starts with "inside a frame" base state.
54
54
@ Test
55
55
public void testShouldSwitchFocusToANewWindowWhenItIsOpenedAndNotStopFutureOperations () {
@@ -179,11 +179,13 @@ public void testShouldThrowNoSuchWindowExceptionOnAnyElementOperationIfAWindowIs
179
179
180
180
@ NeedsFreshDriver
181
181
@ NoDriverAfterTest
182
- @ Ignore ({IE , MARIONETTE , REMOTE })
182
+ @ Ignore ({IE , REMOTE })
183
183
@ Test
184
184
public void testShouldBeAbleToIterateOverAllOpenWindows () {
185
185
driver .get (pages .xhtmlTestPage );
186
+ String original = driver .getWindowHandle ();
186
187
driver .findElement (By .name ("windowOne" )).click ();
188
+ driver .switchTo ().window (original );
187
189
driver .findElement (By .name ("windowTwo" )).click ();
188
190
189
191
wait .until (windowHandleCountToBeGreaterThan (2 ));
You can’t perform that action at this time.
0 commit comments