PerfectoMobile plugin for NemoJS
A running nemo@1.x
installation. The remainder of this document assumes you are familiar with installing/configuring/using
Nemo plugins.
If you are new to Nemo, please start here: https://nemo.js.org
In your project where Nemo is already installed:
$ npm install --save nemo-perfectomobile
or use --save-dev
if nemo and plugins are development dependencies
In the appropriate JSON configuration file, add this as a plugin:
"plugins": {
"perfectomobile": {
"module": "nemo-perfectomobile",
"arguments": ["path:report"]
}
},
make sure the /report
directory exists
nemo.perfectomobile.getReport(filename)
@argument filename {String}
(optional): provide a full name for your report file. Make sure to include either.html
or.pdf
in order to indicate which type of file you wish to save. If left blank, the plugin will auto-name and select.html
as the report type.@returns Promise
Note that this method will execute webdriver.close()
before requesting a report. So only call the method once you are done
running any other webdriver commands.