|
30 | 30 | import static org.junit.Assert.fail;
|
31 | 31 | import static org.junit.Assume.assumeFalse;
|
32 | 32 | import static org.junit.Assume.assumeTrue;
|
| 33 | +import static org.openqa.selenium.Platform.ANDROID; |
33 | 34 | import static org.openqa.selenium.WaitingConditions.elementTextToContain;
|
34 | 35 | import static org.openqa.selenium.WaitingConditions.elementTextToEqual;
|
35 | 36 | import static org.openqa.selenium.WaitingConditions.newWindowIsOpened;
|
|
46 | 47 | import static org.openqa.selenium.testing.Ignore.Driver.OPERA_MOBILE;
|
47 | 48 | import static org.openqa.selenium.testing.Ignore.Driver.PHANTOMJS;
|
48 | 49 | import static org.openqa.selenium.testing.Ignore.Driver.SAFARI;
|
| 50 | +import static org.openqa.selenium.testing.TestUtilities.isChrome; |
| 51 | +import static org.openqa.selenium.testing.TestUtilities.getEffectivePlatform; |
49 | 52 | import static org.openqa.selenium.testing.TestUtilities.isFirefox;
|
50 | 53 | import static org.openqa.selenium.testing.TestUtilities.isLocal;
|
51 | 54 | import static org.openqa.selenium.testing.TestUtilities.isNativeEventsEnabled;
|
@@ -256,6 +259,10 @@ public void testShouldBeAbleToLoadAPageWithFramesetsAndWaitUntilAllFramesAreLoad
|
256 | 259 | @NoDriverAfterTest
|
257 | 260 | @Test
|
258 | 261 | public void testShouldDoNothingIfThereIsNothingToGoBackTo() {
|
| 262 | + assumeFalse( |
| 263 | + "chromedriver does not disable popup blocker on Android: " |
| 264 | + + "https://code.google.com/p/chromedriver/issues/detail?id=1021", |
| 265 | + isChrome(driver) && getEffectivePlatform(driver).is(ANDROID)); |
259 | 266 | Set<String> currentWindowHandles = driver.getWindowHandles();
|
260 | 267 | ((JavascriptExecutor) driver).executeScript(
|
261 | 268 | "window.open('" + pages.formPage + "', 'newWindow')");
|
|
0 commit comments