就像Chrome这种
with open('a.js') as f: js = f.read() # 浏览器加载那个js文件 browser.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", { "source": js })
548k questions
547k answers
4 comments
86.3k users