node-chromedriver
node-chromedriver copied to clipboard
Can run multiple sessions of chromedriver
Hi there,
I need to be able to use chromedriver to run two different sessions in parallel using the same chrome backend. Currently I seem to be getting a shared session between two parallel runs. Is there anyway to prevent that, such as passing some kind of profile name to seperate the two users as if they were different?
I start chromedriver with start() at the moment:
chromedriver.start([
'--url-base=/wd/hub',
'--port 9515'
])
Thanks in advance
Not yet, the code to start Chromedriver is really simple, see:
https://github.com/giggio/node-chromedriver/blob/1e97332826aced66fe1b3368e50d8b279c7b3bf9/lib/chromedriver.js#L5-L11
We can't change start method signature without breaking existing users, but we could add another method. How about a startNew method?