API Docs for: 0.0.6
Show:

Dalek.DriverNative Class

Defined in: index.js:82
Module: Driver

Launches the browsers to test and handles the webdriver requests & responses

Methods

_actionQueueNonReturneeTemplate

(
  • fnName
  • hash
  • uuid
)
private chainable

Defined in index.js:297

Generates a chain of webdriver calls for webdriver methods that don't have a return value TODO: Name is weird, should be saner

Parameters:

  • fnName String

    Name of the webdriver function that should be called

  • hash String

    Unique action hash

  • uuid String

    Unique action hash

_createNonReturnee

(
  • fnName
)
Function private

Defined in index.js:281

Creates an anonymus function that calls a webdriver method that has no return value, emits an empty result event if the function has been run TODO: Name is weird, should be saner

Parameters:

  • fnName String

    Name of the webdriver function that should be called

Returns:

Function:

fn

_driverStatus

(
  • statusInfo
)
Object private

Defined in index.js:264

Loads the browser driver status

Parameters:

  • statusInfo Object

    Driver status information

Returns:

Object:

promise Driver status promise

_generateDummyDriverMessageFn

(
  • fnName
  • hash
  • uuid
)
Object private

Defined in index.js:316

Creates a driver notification with an empty value TODO: Name is weird, should be saner

Parameters:

  • fnName String

    Name of the webdriver function that should be called

  • hash String

    Unique action hash

  • uuid String

    Unique action hash

Returns:

Object:

promise Driver message promise

_initializeProperties

(
  • opts
)
private chainable

Defined in index.js:95

Initializes the driver properties

Parameters:

  • opts Object

    Options needed to kick off the driver

_initializeProperties

(
  • browser
)
private chainable

Defined in index.js:118

Binds listeners on browser events

Parameters:

  • browser Object

    Browser module

_sessionStatus

(
  • sessionInfo
)
Object private

Defined in index.js:247

Loads the browser session status

Parameters:

  • sessionInfo Object

    Session information

Returns:

Object:

promise Browser session promise

_startBrowserSession

(
  • deferred
)
private chainable

Defined in index.js:163

Creates a new webdriver session Gets the driver status Gets the session status Resolves the promise (e.g. let them tests run)

Parameters:

  • deferred Object

    Browser session deferred

create

(
  • opts
)
DriverNative

Defined in index.js:360

Creates a new driver instance

Parameters:

  • opts Object

    Options needed to kick off the driver

Returns:

DriverNative:

driver

end

() chainable

Defined in index.js:209

Starts to execution of a batch of tests

flushQueue

() chainable

Defined in index.js:232

Flushes the action queue (e.g. commands that should be send to the wbdriver server)

isMultiBrowser

() Bool

Defined in index.js:336

Determines if the driver is a "multi" browser driver, e.g. can handle more than one browser

Returns:

Bool:

isMultiBrowser Driver can handle more than one browser

start

() Object

Defined in index.js:139

Checks if a webdriver session has already been established, if not, create a new one

Returns:

Object:

promise Driver promise

verifyBrowser

() Bool

Defined in index.js:348

Verifies a browser request TODO: Still a noop, need to add "verify the browser" logic

Returns:

Bool:

isVerifiedBrowser Driver can handle this browser