API Docs for: 0.2.7
Show:

Comparison Class

Module: Helpers
Parent Module: WebDriver

Comparison object

Constructor

Comparison

(
  • driver
  • comparisonList
)

Parameters:

  • driver Driver
  • comparisonList String[]

    List of tools to use for comparison

Methods

_compare

(
  • plugins
  • title
  • imageBlob
  • options
)
private

Uses a list comparison plugins to compare a screenshot

Parameters:

_getCompareList

() String[] private

Gets a list of comparison plugins

Returns:

_loadComparison

(
  • name
)
private

Loads a specific comparison plugin

Parameters:

_logMethodCall

(
  • event
)
private

Logs a method call by an event

Parameters:

_requestJSON

(
  • method
  • path
  • [body]
)
private

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

Parameters:

Returns:

:

compare

(
  • title
  • imageBlob
  • [options]
)

Compares a specific screenshot with all comparison plugins

Parameters:

  • title String

    Unique title of image

  • imageBlob Buffer

    Image buffer of current screenshot

  • [options] Object optional

    Comparison options

getComparison

(
  • name
)
BlinkDiffComparison

Gets a specific comparison tool by name

Parameters:

tearDown

()

Tear-down of comparison plugins