API Docs for: 0.2.7
Show:

Navigator Class

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

Navigation object

Constructor

Navigator

(
  • driver
)

Defined in lib/navigator.js:9

Parameters:

Methods

_logMethodCall

(
  • event
)
private

Defined in lib/navigator.js:27

Logs a method call by an event

Parameters:

_requestJSON

(
  • method
  • path
  • [body]
)
private

Defined in lib/navigator.js:40

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

Parameters:

Returns:

:

backward

()

Defined in lib/navigator.js:80

Navigate backwards in the browser history, if possible.

forward

()

Defined in lib/navigator.js:71

Navigate forwards in the browser history, if possible.

getUrl

() String

Defined in lib/navigator.js:99

Get the current url that the browser is displaying

Returns:

navigateTo

(
  • path
)

Navigates the browser to the specified path

  • if path begins with a "/" it is relative to options.base
  • if path begins with "http" it is absolute
  • otherwise it is relative to the current path

Parameters:

refresh

()

Defined in lib/navigator.js:89

Refreshes the browser

setUrl

(
  • path
)

Navigates the browser to the specified path

Alias for navigateTo

Parameters: