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

Method enlargeBy

java/test/org/openqa/selenium/WindowTest.java:246–252  ·  view source on GitHub ↗
(Consumer<WebDriver.Window> operation)

Source from the content-addressed store, hash-verified

244 }
245
246 private void enlargeBy(Consumer<WebDriver.Window> operation) {
247 WebDriver.Window window = driver.manage().window();
248 Dimension size = window.getSize();
249 operation.accept(window);
250 wait.until($ -> window.getSize().width > size.width);
251 wait.until($ -> window.getSize().height > size.height);
252 }
253
254 private ExpectedCondition<Boolean> windowSizeEqual(final Dimension size) {
255 return driver -> {

Calls 5

windowMethod · 0.65
manageMethod · 0.65
getSizeMethod · 0.65
acceptMethod · 0.65
untilMethod · 0.65

Tested by

no test coverage detected