参考了网上已有的资料,原因是因为:
driver = webdriver.Chrome({Path of ChromeDrive})
填写了路径之后,会出现报错的情况;
解决方法:
from selenium.webdriver.chrome.service import Service
MoKinChrome = Service(r{Path of ChromeDrive})
driver = webdriver.Chrome(service=MoKinChrome)
需要注意的是,Service需要大写S
标签:webdriver,executable,DeprecationWarning,Service,Chrome,pass From: https://www.cnblogs.com/MoKinLi/p/16833578.html