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

Method enlargeBy

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

Source from the content-addressed store, hash-verified

247 }
248
249 private void enlargeBy(Consumer<WebDriver.Window> operation) {
250 WebDriver.Window window = driver.manage().window();
251 Dimension size = window.getSize();
252 operation.accept(window);
253 wait.until($ -> window.getSize().width > size.width);
254 wait.until($ -> window.getSize().height > size.height);
255 }
256
257 private ExpectedCondition<Boolean> windowSizeEqual(final Dimension size) {
258 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