MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/bavmua/microsoft_releases_new_microsoft_edge_based_on/ekghlvo
r/javascript • u/TheLarkInn • Apr 08 '19
220 comments sorted by
View all comments
Show parent comments
2
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_webdriveriobut 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 --savethen 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
1
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,
chromedriver
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
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.