0
Follow
0
View

Traceback (most recent call last): File "D:\Python\PLAY.PY", line 29, in

drenwu 注册会员
2023-01-25 18:33

You NEED to get in the habit of escaping backslashes. Use one of these options:

driver = webdriver.Chrome('D:\\Python\\chromedriver.exe',desired_capabilities=capa, options=options)
driver = webdriver.Chrome(r'D:\Python\chromedriver.exe',desired_capabilities=capa, options=options)
driver = webdriver.Chrome('D:/Python/chromedriver.exe',desired_capabilities=capa, options=options)

About the Author

Question Info

Publish Time
2023-01-25 18:33
Update Time
2023-01-25 18:33