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 .