中国建设网官方网站平台,网站页面,邢台市刚刚发生的事,校园网站方案一、问题记录
1.使用webdriver报错AttributeError: str object has no attribute capabilities 解决#xff1a;目前使用的selenium版本是4.11.2#xff0c;可以不必设置driver.exe的路径#xff0c;selenium可以自己处理浏览器和驱动程序#xff0c;因此#xff0c;使用…一、问题记录
1.使用webdriver报错AttributeError: str object has no attribute capabilities 解决目前使用的selenium版本是4.11.2可以不必设置driver.exe的路径selenium可以自己处理浏览器和驱动程序因此使用Selenium Webdriver创建对象
from selenium import webdriver
wd webdriver.Chrome()