1.0.6 • Published 4 years ago

wdio-applitools-cucumber-service v1.0.6

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

WDIO5 with CucumberJS Applitools Service

Configuration

Properties

Property nameIs requiredDefault valueDescription
apiKeytrue-API_KEY you use to connect to applitools eyes
appNamefalse-
viewportSizefalsewidth: 1440, height: 900
forceFullPageScreenshotfalsetrue

Example

services: [
    [ 'wdio-applitools-cucumber-service' , {
      appName: "app name",
      apiKey: "apiKey", 
      forceFullPageScreenshot: true,
      viewportSize: {
        width: 1440,
        height: 900,
      }
    }]
  ]

Usage

The service adds 2 global.browser commands:

  • takeSnapshot
  • takeSnapshotOfRegion

Example

browser.takeSnapshot('Login page');

browser.takeSnapshotOfRegion('Login page', Target.window().fully())