I am trying to load a version of firefox with adblock but i am getting an error.
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)
error reads
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'
Not to sure what is going on and why the directory is messing up.