向Chrome python selenium webdri添加adblock时出错

2024-09-27 02:25:19 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试使用以下代码将adblock添加到selenium中:

chop =webdriver.ChromeOptions()
chop.add_extension('Adblock-Plus_v1.4.1.crx')
driver = webdriver.Chrome(chrome_options=chop)

我有个错误:

^{pr2}$

我该怎么办?在


Tags: 代码adddriverseleniumextensionpluschromeoptions

热门问题