我想知道如何使用selenium将Chrome 104中的Navigator.Webdriver布尔值更改为false。
我尝试过一些老方法,但它们似乎都是针对铬94及以下的。我尝试了这里列出的第一个方法,但是得到了与chrome版本相关的执行错误:https://piprogramming.org/articles/How-to-make-Selenium-undetectable-and-stealth--7-Ways-to-hide-your-Bot-Automation-from-Detection-0000000017.html
发布于 2022-08-18 21:55:34
要将navigator.webdriver设置为None / undefined,可以使用以下解决方案:
driver = webdriver.Chrome(service=s,options=options) driver.get(‘https://www.google.com/'’)打印(driver.execute_script(“返回navigator.webdriver;”)#将navigator.webdriver设置为未定义的get驱动程序,{get:()未定义})打印(driver.execute_script(“返回navigator.webdriver”))
真非
https://stackoverflow.com/questions/73406214
复制相似问题