DecoratedWindow extends DecoratedChild<WebDriver.Window,DecoratedWebDriver> implements WebDriver.Window { @Override public Dimension getSize() { return getOriginal().getSize(); } DecoratedWindow(final WebDriver.Window window, final DecoratedWebDriver driverWrapper); @Override void setSize(Dimension size); @Override void setPosition(Point position); @Override Dimension getSize(); @Override Point getPosition(); @Override void maximize(); @Override void fullscreen();  }
@Test void testGetSize() { verifyFunction(WebDriver.Window::getSize, new Dimension(100, 200)); }