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)