我得到了这个错误,关于权限的错误为什么:
.....
PermissionError: [Errno 13] Permission denied: 'my_path\\1.0.5_0'
运行此操作时:
import os
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
executable_path = "chromedriver.exe"
os.environ["webdriver.chrome.driver"] = executable_path
path = r'my_path\hcdnbmbdfhhfjejboimdelpfjielfnde\1.0.5_0'
chrome_options = Options()
chrome_options.add_extension(path)
driver = webdriver.Chrome(executable_path=executable_path, options=chrome_options)
driver.get("http://stackoverflow.com")
driver.quit()
1条答案
按热度按时间tv6aics11#