DecoratedOptions extends DecoratedChild<WebDriver.Options,DecoratedWebDriver> implements WebDriver.Options { @Override public WebDriver.Timeouts timeouts() { return new Activator<WebDriver.Timeouts>().activate(getTopmostDecorated().createDecorated(getOriginal().timeouts())); } 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();  }
@Test void testTimeouts() { WebDriver.Timeouts timeouts = mock(WebDriver.Timeouts.class); verifyDecoratingFunction(WebDriver.Options::timeouts, timeouts, t -> t.implicitlyWait(10, TimeUnit.SECONDS)); }