标签:controls web none const class control exec val exe
selenium
browser.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", { "source": """ Object.defineProperty(navigator, ‘webdriver‘, { get: () => undefined }) """ })
pyppeteer
js = ‘‘‘ ()=>{ const newProto = navigator.__proto__; delete newProto.webdriver; navigator.__proto__ = newProto; } ‘‘‘ await page.evaluateOnNewDocument(js)
最新解决navigator.webdriver=true的方法
标签:controls web none const class control exec val exe
原文地址:https://www.cnblogs.com/rnckty/p/12879046.html