C# Class Selenium.Manage

Inheritance: ComInterfaces._Manage
Exibir arquivo Open project: florentbr/SeleniumBasic

Public Methods

Method Description
AddCookie ( string name, string value, string domain = null, string path = null, string expiry = null, bool secure = false, bool httpOnly = false ) : void

Adds a cookie to the current page.

DeleteAllCookies ( ) : void

Deletes all cookies from the page.

DeleteCookieByName ( string name ) : void

Deletes the cookie with the specified name from the page.

FindCookieByName ( string namePattern ) : Selenium.Cookie

Gets a cookie with the specified name.

Location ( ) : Dictionary

Get the current geo location.

SetLocation ( double latitude, double longitude, double altitude ) : void

Set the current geo location.

Private Methods

Method Description
Manage ( RemoteSession session ) : Selenium.Core

Method Details

AddCookie() public method

Adds a cookie to the current page.
public AddCookie ( string name, string value, string domain = null, string path = null, string expiry = null, bool secure = false, bool httpOnly = false ) : void
name string
value string
domain string
path string
expiry string
secure bool
httpOnly bool
return void

DeleteAllCookies() public method

Deletes all cookies from the page.
public DeleteAllCookies ( ) : void
return void

DeleteCookieByName() public method

Deletes the cookie with the specified name from the page.
public DeleteCookieByName ( string name ) : void
name string The name of the cookie to be deleted.
return void

FindCookieByName() public method

Gets a cookie with the specified name.
public FindCookieByName ( string namePattern ) : Selenium.Cookie
namePattern string The name of the cookie to retrieve.
return Selenium.Cookie

Location() public method

Get the current geo location.
public Location ( ) : Dictionary
return Dictionary

SetLocation() public method

Set the current geo location.
public SetLocation ( double latitude, double longitude, double altitude ) : void
latitude double
longitude double
altitude double
return void