我正在使用selenium webdriver并创建一个chrome驱动程序实例。当我尝试向下和向上滚动时,会收到以下错误消息。此外,我可以看到一条错误消息“Chrome正在由一个自动化软件控制”。看到这个错误很烦人,尽管我无法在Chrome浏览器中更改任何允许自动化的设置。from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait as wait
from selenium.common.exceptions import TimeoutException
from log_util.logger import log as Log
import time
log = Log()
class Wiki(object):
def __init__(self):
self.link = 'http://wikipedia.org'
self.path = '/Users/swadhikar_c/Downloads/chromedriver'
self.driver = webdriver.Chrome(executable_path=self.path)
def open_wiki(self):
driver = self.driver
driver.get(self.link