常州行业网站,淄博百姓网,邢台做网站推广的公司,手机网站弹出层插件有哪些一、问题记录
1.使用webdriver报错AttributeError: str object has no attribute capabilities 解决:目前使用的selenium版本是4.11.2,可以不必设置driver.exe的路径,selenium可以自己处理浏览器和驱动程序,因此,使用…
一、问题记录
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()