API Docs for: 0.2.7
Show:

Browser Class

Defined in: lib/browser.js:15
Module: Core
Parent Module: WebDriver

Browser accessor class

Constructor

Browser

(
  • driver
)

Defined in lib/browser.js:15

Parameters:

Methods

_logMethodCall

(
  • event
)
protected

Defined in lib/browser.js:33

Logs a method call by an event

Parameters:

_requestJSON

(
  • method
  • path
  • [body]
)
private

Defined in lib/browser.js:45

Performs a context dependent JSON request for the current session. The result is parsed for errors.

Parameters:

Returns:

:

activateWindow

(
  • handle
)

Defined in lib/browser.js:99

Change focus to another window

Parameters:

activeWindow

() ActiveWindow

Defined in lib/browser.js:123

Get the currently active window. Direct-access. No need to wait.

Returns:

cookieStorage

() CookieStorage

Defined in lib/browser.js:209

Get the Cookie-Storage object. Direct-access. No need to wait.

Returns:

getGeoLocation

() Object

Defined in lib/browser.js:171

Get the current geo location

Returns:

Object:

{latitude: number, longitude: number, altitude: number}

getOrientation

() String

Defined in lib/browser.js:149

Get the current browser orientation

Returns:

getWindows

() Array.

Defined in lib/browser.js:134

Get an array of windows for all available windows

Returns:

Array.:

ime

() IME

Defined in lib/browser.js:197

Get the IME object. Direct-access. No need to wait.

Returns:

IME:

localStorage

() LocalStorage

Defined in lib/browser.js:220

Get the Local-Storage object. Direct-access. No need to wait.

Returns:

setGeoLocation

(
  • latitude
  • longitude
  • altitude
)

Defined in lib/browser.js:181

Set the current geo location

Parameters:

setOrientation

(
  • orientation
)

Defined in lib/browser.js:159

Get the current browser orientation

Parameters:

Properties

ORIENTATION_LANDSCAPE

String static

Defined in lib/browser.js:65

Landscape orientation of the device

ORIENTATION_PORTRAIT

String static

Defined in lib/browser.js:74

Portrait orientation of the device