parent
365c5dc6c0
commit
59483716e7
@ -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