代码:
import undetected_chromedriver.v2 as uc
driver = uc.Chrome()
with driver:
driver.get('https://www.baidu.com')
异常:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/undetected_chromedriver/v2.py", line 597, in __del__
self.quit()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/undetected_chromedriver/v2.py", line 576, in quit
or self.keep_user_data_dir is False:
AttributeError: 'Chrome' object has no attribute 'keep_user_data_dir'