C# 클래스 OpenQA.Selenium.Chrome.ChromeDriver.ChromeOptions

Provides a mechanism to add options to the browser
상속: IOptions
파일 보기 프로젝트 열기: epall/selenium

공개 메소드들

메소드 설명
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

메소드 상세

AddCookie() 공개 메소드

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

ChromeOptions() 공개 메소드

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

DeleteAllCookies() 공개 메소드

Delete all the Cookies
public DeleteAllCookies ( ) : void
리턴 void

DeleteCookie() 공개 메소드

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

DeleteCookieNamed() 공개 메소드

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

Execute() 공개 메소드

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

GetCookieNamed() 공개 메소드

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

GetCookies() 공개 메소드

Gets all the cookies available
public GetCookies ( ) : ReadOnlyCollection
리턴 ReadOnlyCollection