@Test void testWindow() { final WebDriver.Window window = mock(WebDriver.Window.class); verifyDecoratingFunction(WebDriver.Options::window, window, WebDriver.Window::maximize); }
@Override public WebDriver.Window window() { return new Activator<WebDriver.Window>().activate(getTopmostDecorated().createDecorated(getOriginal().window())); }
DecoratedOptions extends DecoratedChild<WebDriver.Options,DecoratedWebDriver> implements WebDriver.Options { @Override public WebDriver.Window window() { return new Activator<WebDriver.Window>().activate(getTopmostDecorated().createDecorated(getOriginal().window())); } }
DecoratedOptions extends DecoratedChild<WebDriver.Options,DecoratedWebDriver> implements WebDriver.Options { @Override public WebDriver.Window window() { return new Activator<WebDriver.Window>().activate(getTopmostDecorated().createDecorated(getOriginal().window())); } DecoratedOptions(final WebDriver.Options options, final DecoratedWebDriver driverWrapper); }
DecoratedOptions extends DecoratedChild<WebDriver.Options,DecoratedWebDriver> implements WebDriver.Options { @Override public WebDriver.Window window() { return new Activator<WebDriver.Window>().activate(getTopmostDecorated().createDecorated(getOriginal().window())); } DecoratedOptions(final WebDriver.Options options, final DecoratedWebDriver driverWrapper); @Override void addCookie(Cookie cookie); @Override void deleteCookieNamed(String name); @Override void deleteCookie(Cookie cookie); @Override void deleteAllCookies(); @Override Set<Cookie> getCookies(); @Override Cookie getCookieNamed(String name); @Override WebDriver.Timeouts timeouts(); @Override WebDriver.ImeHandler ime(); @Override WebDriver.Window window(); @Override Logs logs(); }
DecoratedOptions extends DecoratedChild<WebDriver.Options,DecoratedWebDriver> implements WebDriver.Options { @Override public WebDriver.Window window() { return new Activator<WebDriver.Window>().activate(getTopmostDecorated().createDecorated(getOriginal().window())); } DecoratedOptions(final WebDriver.Options options, final DecoratedWebDriver driverWrapper); @Override void addCookie(Cookie cookie); @Override void deleteCookieNamed(String name); @Override void deleteCookie(Cookie cookie); @Override void deleteAllCookies(); @Override Set<Cookie> getCookies(); @Override Cookie getCookieNamed(String name); @Override WebDriver.Timeouts timeouts(); @Override WebDriver.ImeHandler ime(); @Override WebDriver.Window window(); @Override Logs logs();  }