API Docs for: 0.0.6
Show:

Dalek.DriverNative.Commands.Page Class

Module: Driver

Page related methods

Methods

_acceptAlertCb

(
  • hash
  • result
)
Object private

Sends out an event with the results of the acceptAlert call

Parameters:

  • hash String

    Unique hash of that fn call

  • result String

    Serialized JSON with the reuslts of the toFrame call

Returns:

Object:

promise Exists promise

_alertTextCb

(
  • expected
  • hash
  • alertText
)
Object private

Sends out an event with the results of the alertText call

Parameters:

  • expected String

    Expected alert text

  • hash String

    Unique hash of that fn call

  • alertText String

    Serialized JSON with the results of the alertText call

Returns:

Object:

promise alertText promise

_dismissAlertCb

(
  • hash
  • result
)
Object private

Sends out an event with the results of the dismissAlert call

Parameters:

  • hash String

    Unique hash of that fn call

  • result String

    Serialized JSON with the reuslts of the toFrame call

Returns:

Object:

promise Exists promise

_noopCb

(
  • message
  • hash
)
Object private

Sends out an event with the results of the noop call

Parameters:

  • message Mixed

    Whatever yu like

  • hash String

    Unique hash of that fn call

Returns:

Object:

Promise

_promptTextCb

(
  • dimensions
  • hash
  • result
)
Object private

Sends out an event with the results of the promptText call

Parameters:

  • dimensions Object

    New window width & height

  • hash String

    Unique hash of that fn call

  • result String

    Serialized JSON with the reuslts of the toFrame call

Returns:

Object:

promise Exists promise

_sourceCb

(
  • hash
  • source
)
Object private

Sends out an event with the results of the source call

Parameters:

  • hash String

    Unique hash of that fn call

  • source String

    Serialized JSON with the results of the source call

Returns:

Object:

Promise

_titleCb

(
  • expected
  • hash
  • title
)
Object private

Sends out an event with the results of the title call

Parameters:

  • expected String

    Expected page title

  • hash String

    Unique hash of that fn call

  • title String

    Serialized JSON with the results of the title call

Returns:

Object:

promise Title promise

_waitCb

(
  • timeout
  • hash
  • uuid
)
Object private

Sends out an event with the results of the wait call

Parameters:

  • timeout Integer

    Time to wait in ms

  • hash String

    Unique hash of that fn call

  • uuid String

    Unique hash of that fn call

Returns:

Object:

promise WaitForElement promise

acceptAlert

(
  • hash
)
chainable

Accepts (e.g. oressing the OK button) an javascript alert, prompt or confirm dialog

Parameters:

  • hash String

    Unique hash of that fn call

alertText

(
  • expected
  • hash
)
chainable

Checks the text of an alaert, prompt or confirm dialog

Parameters:

  • expected String

    Expected alert text

  • hash String

    Unique hash of that fn call

dismissAlert

(
  • hash
)
chainable

Accepts (e.g. oressing the OK button) an javascript alert, prompt or confirm dialog

Parameters:

  • hash String

    Unique hash of that fn call

noop

(
  • message
  • hash
)
chainable

This function is non operational

Parameters:

  • message Mixed

    Whatever yu like

  • hash String

    Unique hash of that fn call

promptText

(
  • dimensions
  • hash
)
chainable

Sends text to a javascript prompt dialog box

Parameters:

  • dimensions Object

    New window width & height

  • hash String

    Unique hash of that fn call

source

(
  • hash
)
chainable

Gets the HTML source of a page

Parameters:

  • hash String

    Unique hash of that fn call

title

(
  • expected
  • hash
)
chainable

Checks the document title of a page

Parameters:

  • expected String

    Expected page title

  • hash String

    Unique hash of that fn call

wait

(
  • timeout
  • hash
  • uuid
)
chainable

Wait for a specific amount of time

Parameters:

  • timeout Integer

    Time to wait in ms

  • hash String

    Unique hash of that fn call

  • uuid String

    Unique hash of that fn call