tebeka / selenium

Selenium/Webdriver client for Go
MIT License
2.51k stars 410 forks source link

there will be support cdp?(DevTools Protocol) #246

Open Mainintowhile opened 3 years ago

Mainintowhile commented 3 years ago

just like python, use the method:

driver.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", { "source": "Object.defineProperty(navigator, 'webdriver', {get: () => undefined})" })

wanmail commented 3 years ago

you can see this commit: https://github.com/tebeka/selenium/pull/247