parent
9ddd571818
commit
a83f47c5d0
@ -0,0 +1,17 @@ |
||||
import { NightwatchBrowser } from 'nightwatch' |
||||
import EventEmitter from 'events' |
||||
|
||||
class GetBrowserLogs extends EventEmitter { |
||||
command(this: NightwatchBrowser): NightwatchBrowser { |
||||
this.api.getLog('browser', function (logs) { |
||||
logs.forEach(function (log) { |
||||
console.log(log) |
||||
} |
||||
) |
||||
}).perform(() => { |
||||
this.emit('complete') |
||||
}) |
||||
return this |
||||
} |
||||
} |
||||
module.exports = GetBrowserLogs |
Loading…
Reference in new issue