Created
October 28, 2018 10:59
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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