Skip to content

Instantly share code, notes, and snippets.

@aberonni
Created October 28, 2018 10:59
Show Gist options
  • Save aberonni/c0e3e8fae3a425eea1bed526c1c1d4d0 to your computer and use it in GitHub Desktop.
Save aberonni/c0e3e8fae3a425eea1bed526c1c1d4d0 to your computer and use it in GitHub Desktop.
A script that allows you to run WebdriverIO's REPL interface with chromedriver
const { spawn } = require('child_process');
const chromedriver = require('chromedriver');
chromedriver.start(['--silent'], true).then(() => {
spawn('npx', ['wdio', 'repl', 'chrome', '--port', '9515', '--path', '/'], {
stdio: 'inherit',
}).on('exit', () => {
chromedriver.stop();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment