API Docs for: 0.2.7
Show:

WindowHandler Class

Defined in: lib/window.js:9
Module: Navigation
Parent Module: WebDriver

Window object

Constructor

WindowHandler

(
  • driver
  • id
)

Defined in lib/window.js:9

Parameters:

Methods

_logMethodCall

(
  • event
)
private

Defined in lib/window.js:29

Logs a method call by an event

Parameters:

_requestJSON

(
  • method
  • path
  • [body]
)
private

Defined in lib/window.js:42

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

Parameters:

Returns:

:

activate

()

Defined in lib/window.js:100

Activate the current window

getId

() String

Defined in lib/window.js:84

Get the value of the element id. Should the id resolve to 'current', then it will request the actual id.

Returns:

getPosition

() Object

Defined in lib/window.js:148

Get the position of a window

Returns:

Object:

{x: number, y: number}

getSize

() Object

Defined in lib/window.js:114

Get the size of a window

Returns:

Object:

{width: number, height: number}

id

() String

Defined in lib/window.js:73

Get the value of the element id. Direct-access. No need to wait.

Returns:

maximize

()

Defined in lib/window.js:138

Maximize a window

position

(
  • x
  • y
)

Defined in lib/window.js:158

Position a window

Parameters:

resize

(
  • width
  • height
)

Defined in lib/window.js:124

Get the size of a window

Parameters: