WebDriverGenerator { public Options manage() { return new Options(); } WebDriverGenerator(String value); String get(String value); String close(); String getCurrentUrl(); String getTitle(); String getPageSource(); String getWindowHandles(); String getWindowHandle(); WebElementGenerator findElement(String value); WebElementListGenerator findElements(String value); Options manage(); TargetLocator switchTo(); Navigation navigate();  }
@Test public void checkManageAddCookieReturnsCorrectCode() { assertThat(driver.manage().addCookie("YUM COOKIE!!"), is(equalTo("driver.manage().addCookie(\"YUM COOKIE!!\")"))); }
@Test public void checkManageDeleteCookieNamedReturnsCorrectCode() { assertThat(driver.manage().deleteCookieNamed("YUM COOKIE!!"), is(equalTo("driver.manage().deleteCookieNamed(\"YUM COOKIE!!\")"))); }
@Test public void checkManageDeleteCookieReturnsCorrectCode() { assertThat(driver.manage().deleteCookie("YUM COOKIE!!"), is(equalTo("driver.manage().deleteCookie(\"YUM COOKIE!!\")"))); }
@Test public void checkManageDeleteAllCookiesReturnsCorrectCode() { assertThat(driver.manage().deleteAllCookies(), is(equalTo("driver.manage().deleteAllCookies()"))); }
@Test public void checkManageGetCookiesReturnsCorrectCode() { assertThat(driver.manage().getCookies(), is(equalTo("driver.manage().getCookies()"))); }
@Test public void checkManageGetCookieNamedReturnsCorrectCode() { assertThat(driver.manage().getCookieNamed("YUM COOKIE!!"), is(equalTo("driver.manage().getCookieNamed(\"YUM COOKIE!!\")"))); }
@Test public void checkManageTimeoutsImplicitlyWaitReturnsCorrectCode() { assertThat(driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS), is(equalTo("driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS)"))); }
@Test public void checkManageTimeoutsSetScriptTimeoutReturnsCorrectCode() { assertThat(driver.manage().timeouts().setScriptTimeout(15, TimeUnit.SECONDS), is(equalTo("driver.manage().timeouts().setScriptTimeout(15, TimeUnit.SECONDS)"))); }