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