DecoratedTimeouts extends DecoratedChild<WebDriver.Timeouts,DecoratedWebDriver> implements WebDriver.Timeouts { @Override public WebDriver.Timeouts pageLoadTimeout(long timeout, TimeUnit timeUnit) { getOriginal().pageLoadTimeout(timeout, timeUnit); return this; } DecoratedTimeouts(final WebDriver.Timeouts timeouts, final DecoratedWebDriver driverWrapper); @Override WebDriver.Timeouts implicitlyWait(long timeout, TimeUnit timeUnit); @Override WebDriver.Timeouts setScriptTimeout(long timeout, TimeUnit timeUnit); @Override WebDriver.Timeouts pageLoadTimeout(long timeout, TimeUnit timeUnit);  }
@Test void testPageLoadTimeout() { verifyFunction($ -> $.pageLoadTimeout(10, TimeUnit.SECONDS)); }