Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IResemble

Helper for resemble.js, used for image comparison in tests supported by Gondola.

experimental

v1 > Can be changed or removed soon

Hierarchy

  • IResemble

Index

Methods

seeVisualDiff

  • seeVisualDiff(baseImage: string, options: any): any
  • Shows the Visual Difference between the Base Image and a Screenshot Image

    experimental

    v1 > Can be changed or removed soon

    Parameters

    • baseImage: string

      Name of the Base Image (Base Image path is taken from Configuration)

    • options: any

      Options ex {prepareBaseImage: true, tolerance: 5} along with Resemble JS Options, read more here: https://github.com/rsmbl/Resemble.js

    Returns any

seeVisualDiffForElement

  • seeVisualDiffForElement(selector: string | ILocator, baseImage: string, options: any): any
  • Shows the Visual Diff for an Element on a Page.

    experimental

    v1 > Can be changed or removed soon

    Parameters

    • selector: string | ILocator

      Selector which has to be compared, CSS|XPath|ID

    • baseImage: string

      Base Image for comparison

    • options: any

      Options ex {prepareBaseImage: true, tolerance: 5} along with Resemble JS Options, read more here: https://github.com/rsmbl/Resemble.js

    Returns any