MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / enlargeBy

Method enlargeBy

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

Source from the content-addressed store, hash-verified

234 }
235
236 private void enlargeBy(Consumer<WebDriver.Window> operation) {
237 WebDriver.Window window = driver.manage().window();
238 Dimension size = window.getSize();
239 operation.accept(window);
240 wait.until($ -> window.getSize().width > size.width);
241 wait.until($ -> window.getSize().height > size.height);
242 }
243
244 private ExpectedCondition<Boolean> windowSizeEqual(final Dimension size) {
245 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