|
|
@@ -1,5 +1,6 @@
|
|
|
const webdriverio = require('webdriverio');
|
|
|
const chromedriver = require('chromedriver');
|
|
|
+const kill = require('tree-kill');
|
|
|
|
|
|
// todo: stop works only with 9515
|
|
|
const port = 9515;
|
|
|
@@ -28,8 +29,11 @@ const client = webdriverio
|
|
|
.init()
|
|
|
.on('error', (e) => console.error(e))
|
|
|
.once('end', () => {
|
|
|
+ console.log('end');
|
|
|
process.nextTick(function () {
|
|
|
- chromedriver.stop();
|
|
|
+ console.log('stopping');
|
|
|
+ kill(service.pid);
|
|
|
+ console.log('done');
|
|
|
});
|
|
|
})
|
|
|
.url('https://www.google.com')
|