Skip to content Skip to sidebar Skip to footer

Using The Default Firefox Profile With Selenium Webdriver In Python

I know similar questions have been asked before, but I've tried many times and it still doesn't work for me. I only have a default profile in firefox (called c1r3g2wi.default) and

Solution 1:

Ok, I just solved this by simply changing all the slashes in my file path from "\" to "/". Never knew this would make a difference.

C:/Users/admin/AppData/Roaming/Mozilla/Firefox/Profiles/c1r3g2wi.default

Solution 2:

Moreover, you can use double backslashes in the path:

fp = webdriver.FirefoxProfile('C:\\Users\\admin\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\c1r3g2wi.default')
browser = webdriver.Firefox(fp)

Post a Comment for "Using The Default Firefox Profile With Selenium Webdriver In Python"