This code on python does not work for me:

profile = webdriver.FirefoxProfile('/path/to/ff_profile') browser = webdriver.Firefox(firefox_profile=profile) 

The browser still uses some other directory for the cache:

 disk Number of entries: 88 Maximum storage size: 358400 KiB Storage in use: 1758 KiB Storage disk location: /var/folders/jj/rdpd1ww53n95y5vx8w618k3h0000gq/T/tmpy6zyksfi/webdriver-py-profilecopy/cache2 List Cache Entries 

For the above path /path/to/ff_profile I created a working directory via firefox-bin -p .

    1 answer 1

    Most likely the problem is as follows:

    it is very likely that this is a relative path to the profile directory specified in the firefox.

    When you work in your program, you specify the same relative path, but it already goes relative to your program. Place the category with the profile faarfox in the folder with your program or use the absolute path to the profile.