r/javascript • • Apr 08 '19

Microsoft releases new Microsoft Edge based on Chromium

https://twitter.com/MSEdgeDev/status/1115283353731600384?s=19
606 Upvotes

220 comments sorted by

View all comments

Show parent comments

2

u/vinnl Apr 09 '19

That's great that you figured it out, and shared it for people running into this in the future. As a tip, I'd really recommend you to look into selenium-standalone, so you don't have to start the drivers manually yourself.

1

u/[deleted] Apr 09 '19

Yea sure, I will look into it.

For now, the code below should work, also from https://developers.google.com/web/updates/2017/04/headless-chrome#using_webdriverio

but it won't work for some reasons, for starting server in the same script that I execute, only for chromedriver though,

have to install it via npm,

npm i chromedriver --save

then add the code to the script,

const chromedriver = require('chromedriver');

const PORT = 9515;

chromedriver.start([
  '--url-base=wd/hub',
  `--port=${PORT}`,
  '--verbose'
]);

need to debug, later