How do you connect already existing Chrome browser with Puppeteer?

You can connect to an existing using the connect function : const browserURL = ‘http://127.0.0.1:21222’; const browser = await puppeteer. connect({browserURL}); But, if you want to use those 2 lines you need to launch Chrome with the “–remote-debugging-port=21222 argument.

Sizin İçin Seçtik  What is Puppeteer software?

Leave a Reply

Your email address will not be published. Required fields are marked *