protractor
Version:
Webdriver E2E test wrapper for Angular.
17 lines (13 loc) • 429 B
text/typescript
// a plugin example with the protractor plugin interface
import { ProtractorPlugin } from 'protractor';
// creating a "var module: any" will allow use of module.exports
declare var module: any;
let myPlugin: ProtractorPlugin = {
addSuccess(info: {specName: string}) {
console.log('on success: ' + info.specName);
},
onPageLoad() {
this.addSuccess({specName: 'Hello, World!'});
}
};
module.exports = myPlugin;