0

My application is using microservice and it has many different services. One of the service is launching a chrome driver from the Java code.

I need to access the same chrome driver from the other service. RemoteWebDriver seems to be a solution to do that.

Can anyone please help me how to do that. I am having a chrome driver in service A, which is a java application.

ChromeDriver driver = new ChromeDriver(capabilities);
driver.get(urlToLoad);

Is there any way I can use the same browser window which is open in the system in Service B, which is a Java application running in the same machine.. I need to resuse the same browser since I need the same session of that browser.

It will be a great help if someone could let me know a solution.

Shamnad P S
  • 947
  • 2
  • 12
  • 37
  • See: [How do I do X?](https://meta.stackoverflow.com/questions/253069/whats-the-appropriate-new-current-close-reason-for-how-do-i-do-x) The expectation on SO is that the user asking a question not only does research to answer their own question but also shares that research, code attempts, and results. This demonstrates that you’ve taken the time to try to help yourself, it saves us from reiterating obvious answers, and most of all it helps you get a more specific and relevant answer! See also: [ask] – JeffC Jan 16 '18 at 16:29
  • Possible duplicate of [How can I reconnect to the browser opened by webdriver with selenium?](https://stackoverflow.com/questions/47861813/how-can-i-reconnect-to-the-browser-opened-by-webdriver-with-selenium) – undetected Selenium Jan 16 '18 at 17:38

0 Answers0