C# Class OpenQA.Selenium.Chrome.ChromeDriver.ChromeOptions

Provides a mechanism to add options to the browser
Inheritance: IOptions
Exibir arquivo Open project: epall/selenium

Public Methods

Method Description
AddCookie ( Cookie cookie ) : void

Adds a cookie to the browser

ChromeOptions ( ChromeDriver instance ) : System

Initializes a new instance of the ChromeOptions class

DeleteAllCookies ( ) : void

Delete all the Cookies

DeleteCookie ( Cookie cookie ) : void

Delete a cookie by passing in a cookie object

DeleteCookieNamed ( string name ) : void

Delete a cookie by passing in the name

Execute ( DriverCommand command ) : ChromeResponse

Execute commands on the browser

GetCookieNamed ( string name ) : Cookie

Get a cookie by name

GetCookies ( ) : ReadOnlyCollection

Gets all the cookies available

Method Details

AddCookie() public method

Adds a cookie to the browser
public AddCookie ( Cookie cookie ) : void
cookie Cookie Instance of the cookie you wish to add
return void

ChromeOptions() public method

Initializes a new instance of the ChromeOptions class
public ChromeOptions ( ChromeDriver instance ) : System
instance ChromeDriver Driver currently in use
return System

DeleteAllCookies() public method

Delete all the Cookies
public DeleteAllCookies ( ) : void
return void

DeleteCookie() public method

Delete a cookie by passing in a cookie object
public DeleteCookie ( Cookie cookie ) : void
cookie Cookie The cookie to be deleted
return void

DeleteCookieNamed() public method

Delete a cookie by passing in the name
public DeleteCookieNamed ( string name ) : void
name string Name of the cookie to be deleted
return void

Execute() public method

Execute commands on the browser
public Execute ( DriverCommand command ) : ChromeResponse
command OpenQA.Selenium.Remote.DriverCommand Command to be executed
return ChromeResponse

GetCookieNamed() public method

Get a cookie by name
public GetCookieNamed ( string name ) : Cookie
name string Name of the cookie
return Cookie

GetCookies() public method

Gets all the cookies available
public GetCookies ( ) : ReadOnlyCollection
return ReadOnlyCollection