File tree 1 file changed +2
-0
lines changed
java/client/test/org/openqa/selenium
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 34
34
import org .hamcrest .Matchers ;
35
35
import org .junit .Test ;
36
36
import org .openqa .selenium .internal .Locatable ;
37
+ import org .openqa .selenium .support .ui .ExpectedConditions ;
37
38
import org .openqa .selenium .testing .Ignore ;
38
39
import org .openqa .selenium .testing .JUnit4TestBase ;
39
40
import org .openqa .selenium .testing .JavascriptEnabled ;
@@ -261,6 +262,7 @@ public void testShouldBeAbleToClickALinkThatClosesAWindow() throws Exception {
261
262
// Depending on the Android emulator platform this can take a while.
262
263
wait .until (windowToBeSwitchedToWithName ("close_me" ));
263
264
265
+ wait .until (ExpectedConditions .visibilityOfElementLocated (By .id ("close" )));
264
266
driver .findElement (By .id ("close" )).click ();
265
267
266
268
driver .switchTo ().window (handle );
You can’t perform that action at this time.
0 commit comments