DecoratedOptions extends DecoratedChild<WebDriver.Options,DecoratedWebDriver> implements WebDriver.Options { @Override public void addCookie(Cookie cookie) { getOriginal().addCookie(cookie); } 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 testAddCookie() { verifyFunction($ -> $.addCookie(new Cookie("name", "value"))); }