Playwrite+Chrome远程

> chrome.exe --remote-debugging-port=12345 --user-data-dir="D:\playwright-linr"

 

const browser = await playwright.chromium.connectOverCDP('http://localhost:12345');
const defaultContext = browser.contexts()[0];
const page = defaultContext.pages()[0];

posted on 2023-05-16 15:40  xiaogezi  阅读(149)  评论(0编辑  收藏  举报

导航