# wdio-eyes.selenium-service

> Applitools eyes wrapper on eyes.selenium

Latest version **0.0.62** (published 2019-06-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install wdio-eyes.selenium-service
pnpm add wdio-eyes.selenium-service
yarn add wdio-eyes.selenium-service
bun add wdio-eyes.selenium-service
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.62 |
| Published | 2019-06-02 |
| First published | 2018-07-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 18.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Yanir Taflev |
| Maintainers | yanirta |
| Keywords | Applitools, eyes, eyes.selenium, selenium |

## Links

- npm: https://www.npmjs.com/package/wdio-eyes.selenium-service
- Repository: https://github.com/yanirta/wdio-eyes.selenium-service
- Homepage: https://github.com/yanirta/wdio-eyes.selenium-service#readme
- Issues: https://github.com/yanirta/wdio-eyes.selenium-service/issues
- npm.io page: https://npm.io/package/wdio-eyes.selenium-service

## Dependencies (4)

- [eyes.selenium](https://npm.io/package/eyes.selenium.md) ^3.6.3
- [selenium-webdriver](https://npm.io/package/selenium-webdriver.md) 3.6.0
- [@applitools/eyes-selenium](https://npm.io/package/@applitools/eyes-selenium.md) ^4.17.3
- [@applitools/eyes.webdriverio](https://npm.io/package/@applitools/eyes.webdriverio.md) ^2.4.1

## Alternatives

- [@snazzah/davey](https://npm.io/package/@snazzah/davey.md) — 1.5M weekly downloads
- [@vendure/testing](https://npm.io/package/@vendure/testing.md) — 8.3K weekly downloads
- [vue-simple-context-menu](https://npm.io/package/vue-simple-context-menu.md) — 6.6K weekly downloads
- [cypress-webpack-preprocessor-v5](https://npm.io/package/cypress-webpack-preprocessor-v5.md) — 2.1K weekly downloads
- [@backstage/plugin-catalog-backend-module-puppetdb](https://npm.io/package/@backstage/plugin-catalog-backend-module-puppetdb.md) — 1.3K weekly downloads

## Recent versions

- 0.0.62 (latest) — 2019-06-02
- 0.0.52 — 2019-05-15
- 0.0.41 — 2019-02-08
- 0.0.4 — 2019-01-31
- 0.0.31 — 2019-01-23
- 0.0.3 — 2019-01-16
- 0.0.2 — 2019-01-16
- 0.0.15 — 2018-07-10
- 0.0.14 — 2018-07-09
- 0.0.13 — 2018-07-09
- 0.0.12 — 2018-07-08
- 0.0.1 — 2018-07-08

## README

[![npm version](https://badge.fury.io/js/wdio-eyes.selenium-service.svg)](https://badge.fury.io/js/wdio-eyes.selenium-service)
# wdio-eyes.selenium-service
[Applitools](https://applitools.com) Eyes support for [webdriver.io](https://http://webdriver.io/).
This wrapper built around the most maintained JS package of Applitools.Eyes that is more stable and contains the most recent features.

If you don't have an Applitools account yet, [signup](https://applitools.com/users/register) for free for a trial account.

To install run: `npm i wdio-eyes.selenium-service --save-dev`

Initial setup:
- Insert the following sections in your config file (wdio.conf.js) 
    - `services: ['eyes.selenium'],` //To enable eyes.selenium service
    - Configuration params, a subset of the following object:       
    ```javascript
    applitools: {
        apiKey: process.env.API_KEY,                //Required
        appName: "My Application",                  //Recommended
        viewport: {width: 1111, height: 650},       //Recommended for web, don't use in mobile
        batchName: "Config Batch",                  //Optional
        globalMatchLevel: "Layout",                 //Optional
        disableCSSScrolling: true,                  //Optional
        disableFullPageScreenshot: true,            //Optional
        serverUrl: "https://myeyes.applitools.com", //Optional
        debug: true,                                //Optional
        disable: false,                             //Optional, relevant only if =true
        useEyesWDIO: true,                          //Optional, Use Applitools new WDIO sdk under the hood
        sendDom: true,                              //Optional, Currently for EyesWDIO, default:true
    },
    ```
- Create your first test in tests/specs folder (if needed create the folders too)
    ```javascript
    describe('Simple cases', function () {
        this.timeout(300000);
        describe("Test native App", function () {
            it("test-function-1",function () {
                browser.eyesOpen("Hello world 1");
                browser.url('/helloworld');
                browser.eyesCheckWindow("Homepage");
                browser.click('button');
                browser.eyesCheckWindow("After click");
                browser.eyesClose(false);
            });
        });
    });
    ```
- Advanced scenarios:
  - Fluent syntax - Describe all you need from your checkpoint in one liner short syntax:
  ```javascript
  var Target = require('edio-eyes.selenium-service').getTarget();
  //...
  //Checking the window with Layout algorithm
  browser.eyesCheck("Checkpoint1", Target.window().layout());
  //Working with regions and Page objects
  browser.eyesCheck("Checkpoint2", Target.region(HelloWorldPage.title).layout());
  ```
  - Tags - Tagging interesting metrics of your tests later to be used with the "group by feature"
  ![](https://user-images.githubusercontent.com/6667420/52020130-d7a64c00-24f8-11e9-8fb2-dc0189dabca7.png)
  ```javascript
  browser.eyesTag("Feature", "Feature1"); //can be called x #of different metrics you want to introduce
  browser.eyesOpen("Hello world 1");
  //... rest of the test
  browser.eyesClose(false);
  // Clearing up tags if we want a fresh start for the next test
  browser.eyesClearTags();
  ```

---
_Source: https://npm.io/package/wdio-eyes.selenium-service · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
