1.3.5 • Published 6 years ago

protractor-logs v1.3.5

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

IN PROGRESS - do not use in serious projects!

How to use it?

  1. npm install --save protractor-logs where your package.json is

  2. Now import desired protractor things like ElementFinder, $, ... etc.:

import { ElementFinder, $ } from 'protractor-logs'

It works the same way as protractor, but will also add logs about these actions.

  1. Use like normally you would:

public nameInput: ElementFinder; this.nameInput = $('input[placeholder="Enter a name here"]'); this.nameInput.sendKeys(userName);

etc.

  1. In protractor config add import (or require if using js):

import { saveLogs } from 'protractor-logs'

  1. And then add this:

onComplete: () => { saveLogs(); }

This will create a logs/logs.json file in your directory:

https://i.imgur.com/cfSIGhm.png

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago