MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / resetWindow

Method resetWindow

java/test/org/openqa/selenium/WindowTest.java:40–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39 // The driver is shared, so undo any fullscreen or screen-sized window an earlier test left behind
40 @BeforeEach
41 void resetWindow() {
42 if (!TestUtilities.getEffectivePlatform(driver).is(ANDROID)) {
43 driver.manage().window().setPosition(new Point(50, 50));
44 changeSizeTo(new Dimension(600, 500));
45 }
46 }
47
48 @Test
49 void testGetsTheSizeOfTheCurrentWindow() {

Callers

nothing calls this directly

Calls 6

getEffectivePlatformMethod · 0.95
changeSizeToMethod · 0.95
isMethod · 0.65
setPositionMethod · 0.65
windowMethod · 0.65
manageMethod · 0.65

Tested by

no test coverage detected