【发布时间】:2014-12-21 17:16:03
【问题描述】:
我正在尝试使用 adblock 加载一个版本的 firefox,但出现错误。
profile = webdriver.FirefoxProfile()
adblockfile = '\Users\username\Downloads\adblock_plus-2.6.3-fx+an+sm+tb.xpi'
profile.add_extension (adblockfile)
profile.set_preference("extensions.adblockplus.currentVersion", "2.4")
browser = webdriver.Firefox(firefox_profile=profile)
错误读取
the filename, directory name, or volume label syntax is incorrect: ' c:\\users\\username\\appdata\\local\\temp\\tmplt8yt3.download\x07dblock_plus-2.6.3-fx+an+sm+tb.xpi'
不确定发生了什么以及为什么目录混乱。
【问题讨论】:
-
windows,我不太明白你的意思,对不起,我还是新手。
标签: python