http://tarunlalwani.com/post/reusing-existing-browser-session-selenium/
This post provides the insight for using existing session for selenium, but this is in Python/Java. Wanted to implement the same logic in NodeJS using selenium-webdriver library.
I am able to access the session id using:
driver.getSession().then( function(session) {
console.log('Session:'+session.getId());
});
But how to get the executor value?
CHecked and found webdriver.WebDriver.attachToSession method will attach to the existing session, but need the value for executor and session for the same.