protractor-logs
v1.3.5
Published
1. `npm install --save protractor-logs` where your package.json is
Downloads
4
Readme
IN PROGRESS - do not use in serious projects!
How to use it?
npm install --save protractor-logs
where your package.json isNow 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.
- Use like normally you would:
public nameInput: ElementFinder;
this.nameInput = $('input[placeholder="Enter a name here"]');
this.nameInput.sendKeys(userName);
etc.
- In protractor config add import (or require if using js):
import { saveLogs } from 'protractor-logs'
- And then add this:
onComplete: () => { saveLogs(); }
This will create a logs/logs.json
file in your directory: