selenium chrome正在受到自动测试软件的控制

 

 

 

from selenium import webdriver

# 加启动配置
option = webdriver.ChromeOptions()

option.add_experimental_option('useAutomationExtension', False)
option.add_experimental_option('excludeSwitches', ['enable-automation'])

# 打开chrome浏览器
driver = webdriver.Chrome(chrome_options=option)
driver.get("https://www.baidu.com.cn")
print(driver.title)

原文链接:https://support.i-search.com.cn/article/1567135102391

posted @ 2022-03-17 11:35  超级宝宝11  阅读(298)  评论(0)    收藏  举报