File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
java/client/test/org/openqa/selenium Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 3434import org .hamcrest .Matchers ;
3535import org .junit .Test ;
3636import org .openqa .selenium .internal .Locatable ;
37+ import org .openqa .selenium .support .ui .ExpectedConditions ;
3738import org .openqa .selenium .testing .Ignore ;
3839import org .openqa .selenium .testing .JUnit4TestBase ;
3940import org .openqa .selenium .testing .JavascriptEnabled ;
@@ -261,6 +262,7 @@ public void testShouldBeAbleToClickALinkThatClosesAWindow() throws Exception {
261262 // Depending on the Android emulator platform this can take a while.
262263 wait .until (windowToBeSwitchedToWithName ("close_me" ));
263264
265+ wait .until (ExpectedConditions .visibilityOfElementLocated (By .id ("close" )));
264266 driver .findElement (By .id ("close" )).click ();
265267
266268 driver .switchTo ().window (handle );
You can’t perform that action at this time.
0 commit comments