Skip to content

Commit

Permalink
Fix the WindowTest
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Nov 24, 2020
1 parent 0d0b1f8 commit d265f30
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions java/client/test/org/openqa/selenium/WindowTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,12 @@ public void canFullscreenTheWindow() {
// though others aren't defined in org.openqa.selenium.Platform).
assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID));

changeSizeTo(new Dimension(640, 323));
enlargeBy(WebDriver.Window::fullscreen);
try {
changeSizeTo(new Dimension(640, 323));
enlargeBy(WebDriver.Window::fullscreen);
} finally {
driver.manage().window().setSize(new Dimension(640, 323));
}
}

@SwitchToTopAfterTest
Expand Down

0 comments on commit d265f30

Please sign in to comment.