Let's say I have 2 following tabs opened in a Google Chrome browser:
Now, from the Node.js, I want to get access to the entire HTML of any of the tab. Is it possible?
I think that is possible to do it using Chrome DevTools Protocol
(https://chromedevtools.github.io/), but CDP
requires to launch chrome from a terminal with --remote-debugging-port=9222
flag, which is not ideally what I would want.
Is it possible to somehow connect to Google Chrome
that is already opened?