org.openqa.selenium.remote
Class RemoteWebDriver.RemoteWebDriverOptions

java.lang.Object
  extended by org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions
All Implemented Interfaces:
WebDriver.Options
Enclosing class:
RemoteWebDriver

protected class RemoteWebDriver.RemoteWebDriverOptions
extends Object
implements WebDriver.Options


Nested Class Summary
protected  class RemoteWebDriver.RemoteWebDriverOptions.RemoteInputMethodManager
           
protected  class RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts
           
 
Constructor Summary
protected RemoteWebDriver.RemoteWebDriverOptions()
           
 
Method Summary
 void addCookie(Cookie cookie)
          Add a specific cookie.
 void deleteAllCookies()
          Delete all the cookies for the current domain.
 void deleteCookie(Cookie cookie)
          Delete a cookie from the browser's "cookie jar".
 void deleteCookieNamed(String name)
          Delete the named cookie from the current domain.
 Cookie getCookieNamed(String name)
          Get a cookie with a given name.
 Set<Cookie> getCookies()
          Get all the cookies for the current domain.
 WebDriver.ImeHandler ime()
          Returns the interface for controlling IME engines to generate complex-script input.
 WebDriver.Timeouts timeouts()
          Returns the interface for managing driver timeouts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteWebDriver.RemoteWebDriverOptions

protected RemoteWebDriver.RemoteWebDriverOptions()
Method Detail

addCookie

public void addCookie(Cookie cookie)
Description copied from interface: WebDriver.Options
Add a specific cookie. If the cookie's domain name is left blank, it is assumed that the cookie is meant for the domain of the current document.

Specified by:
addCookie in interface WebDriver.Options
Parameters:
cookie - The cookie to add.

deleteCookieNamed

public void deleteCookieNamed(String name)
Description copied from interface: WebDriver.Options
Delete the named cookie from the current domain. This is equivalent to setting the named cookie's expiry date to some time in the past.

Specified by:
deleteCookieNamed in interface WebDriver.Options
Parameters:
name - The name of the cookie to delete

deleteCookie

public void deleteCookie(Cookie cookie)
Description copied from interface: WebDriver.Options
Delete a cookie from the browser's "cookie jar". The domain of the cookie will be ignored.

Specified by:
deleteCookie in interface WebDriver.Options

deleteAllCookies

public void deleteAllCookies()
Description copied from interface: WebDriver.Options
Delete all the cookies for the current domain.

Specified by:
deleteAllCookies in interface WebDriver.Options

getCookies

public Set<Cookie> getCookies()
Description copied from interface: WebDriver.Options
Get all the cookies for the current domain. This is the equivalent of calling "document.cookie" and parsing the result

Specified by:
getCookies in interface WebDriver.Options
Returns:
A Set of cookies for the current domain.

getCookieNamed

public Cookie getCookieNamed(String name)
Description copied from interface: WebDriver.Options
Get a cookie with a given name.

Specified by:
getCookieNamed in interface WebDriver.Options
Parameters:
name - the name of the cookie
Returns:
the cookie, or null if no cookie with the given name is present

timeouts

public WebDriver.Timeouts timeouts()
Description copied from interface: WebDriver.Options
Returns the interface for managing driver timeouts.

Specified by:
timeouts in interface WebDriver.Options

ime

public WebDriver.ImeHandler ime()
Description copied from interface: WebDriver.Options
Returns the interface for controlling IME engines to generate complex-script input.

Specified by:
ime in interface WebDriver.Options


Copyright © 2011. All Rights Reserved.