API Docs for: 0.0.2
Show:

Dalek.DriverNative.Commands.Screenshot Class

Screenshot related methods

Methods

_parseBrowserVersion

() String private

Return the formatted browser version

Returns:

String:

Browser version

_parseDate

() String private

Return the formatted date

Returns:

String:

Date

_parseDatetime

() String private

Return the formatted datetime

Returns:

String:

Datetime

_parseOS

(
  • Pathname
)
String private

Return the formatted os name

Parameters:

  • Pathname String

Returns:

String:

Formatted pathname

_parseOS

() String private

Return the formatted os name

Returns:

String:

OS name

_parseOSVersion

() String private

Return the formatted os version

Returns:

String:

OS version

_parseViewport

() String private

Return the formatted viewport

Returns:

String:

Viewport

_recursiveMakeDirSync

(
  • path
)
private

Recursige mkdir helper

Parameters:

  • path String

    Path to create

_screenshotCb

(
  • path
  • pathname
  • hash
  • uuid
  • result
)
Object private

Sends out an event with the results of the screenshot call and stores the screenshot in the filesystem

Parameters:

  • path String

    Root directory path

  • pathname String

    Pathname of the screenshot path

  • hash String

    Unique hash of that fn call

  • uuid String

    Unique hash of that fn call

  • result String

    Serialized JSON result of the screenshot call

Returns:

Object:

promise Screenshot promise

screenshot

(
  • path
  • pathname
  • hash
  • uuid
)
chainable

Makes an screenshot of the current page

Parameters:

  • path String

    Root directory path

  • pathname String

    Pathname of the screenshot path

  • hash String

    Unique hash of that fn call

  • uuid String

    Unique hash of that fn call