C# Класс OpenQA.Selenium.Remote.RemoteCookieJar

Defines an interface allowing the user to manipulate cookies on the current page.
Наследование: ICookieJar
Показать файл Открыть проект

Открытые методы

Метод Описание
AddCookie ( Cookie cookie ) : void

Method for creating a cookie in the browser

DeleteAllCookies ( ) : void

Delete All Cookies that are present in the browser

DeleteCookie ( Cookie cookie ) : void

Delete a cookie in the browser by passing in a copy of a cookie

DeleteCookieNamed ( string name ) : void

Delete the cookie by passing in the name of the cookie

GetCookieNamed ( string name ) : Cookie

Method for returning a getting a cookie by name

RemoteCookieJar ( RemoteWebDriver driver ) : System

Initializes a new instance of the RemoteCookieJar class.

Приватные методы

Метод Описание
GetAllCookies ( ) : ReadOnlyCollection

Method for getting a Collection of Cookies that are present in the browser

Описание методов

AddCookie() публичный Метод

Method for creating a cookie in the browser
public AddCookie ( Cookie cookie ) : void
cookie Cookie that represents a cookie in the browser
Результат void

DeleteAllCookies() публичный Метод

Delete All Cookies that are present in the browser
public DeleteAllCookies ( ) : void
Результат void

DeleteCookie() публичный Метод

Delete a cookie in the browser by passing in a copy of a cookie
public DeleteCookie ( Cookie cookie ) : void
cookie Cookie An object that represents a copy of the cookie that needs to be deleted
Результат void

DeleteCookieNamed() публичный Метод

Delete the cookie by passing in the name of the cookie
public DeleteCookieNamed ( string name ) : void
name string The name of the cookie that is in the browser
Результат void

GetCookieNamed() публичный Метод

Method for returning a getting a cookie by name
public GetCookieNamed ( string name ) : Cookie
name string name of the cookie that needs to be returned
Результат Cookie

RemoteCookieJar() публичный Метод

Initializes a new instance of the RemoteCookieJar class.
public RemoteCookieJar ( RemoteWebDriver driver ) : System
driver RemoteWebDriver The driver that is currently in use
Результат System