diff --git a/java/client/test/org/openqa/selenium/WindowTest.java b/java/client/test/org/openqa/selenium/WindowTest.java index 638a23025aeff..d8de22f431f5d 100644 --- a/java/client/test/org/openqa/selenium/WindowTest.java +++ b/java/client/test/org/openqa/selenium/WindowTest.java @@ -98,8 +98,11 @@ public void testGetsThePositionOfTheCurrentWindow() { assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID)); Point position = driver.manage().window().getPosition(); - assertThat(position.x, is(greaterThanOrEqualTo(0))); - assertThat(position.y, is(greaterThanOrEqualTo(0))); + // If the Chrome under test is launched by default as maximized, the window + // coordinates may have small negative values (note that elements in the + // viewport are, of course, still clickable). + assertThat(position.x, is(greaterThanOrEqualTo(-10))); + assertThat(position.y, is(greaterThanOrEqualTo(-10))); } @Test