admin管理员组文章数量:1391964
Is it somehow possible to attach puppeteer to a running Chrome instance (manually started browser) and then takeover control within a tab? I'm assuming that it's eventually related to start the Chrome browser using the --no-sandbox
flag but don't know how to continue from there.
Thanks for any help
Is it somehow possible to attach puppeteer to a running Chrome instance (manually started browser) and then takeover control within a tab? I'm assuming that it's eventually related to start the Chrome browser using the --no-sandbox
flag but don't know how to continue from there.
Thanks for any help
Share Improve this question edited Mar 2, 2019 at 4:52 vsemozhebuty 13.9k1 gold badge28 silver badges28 bronze badges asked Feb 28, 2019 at 9:35 BernieBernie 5,0555 gold badges43 silver badges73 bronze badges1 Answer
Reset to default 6You can use puppeteer.connect(options)
(see here):
const puppeteer = require('puppeteer');
const browserWSEndpoint = 'a browser websocket endpoint to connect to';
const browser = await puppeteer.connect({browserWSEndpoint});
//continue from here
本文标签: javascriptHow to quothook inquot puppeteer into a running Chrome instancetabStack Overflow
版权声明:本文标题:javascript - How to "hook in" puppeteer into a running Chrome instancetab - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744678786a2619272.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论