python自动化-取消"Chrome正受到自动软件的控制"提示
chrome浏览器V78及以上版本解决做法,代码如下:
from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_experimental_option('useAutomationExtension',False) chrome_options.add_experimental_option("excludeSwitches",['enable-automation']) driver = webdriver.Chrome(options=chrome_options)