I am using Selenium Python bindings with geckodriver
. After each browser session rust_mozprofile
directories are created in my Windows 7 Temp directory. The houndreds of newly created directories can quickly add up to 5 - 6 GB.
I looked for a solution, but I haven't found anything so far. I can manually delete these directories, but this is not optimal. Is there a way to solve this problem programmatically in Selenium?
This is not a duplicate, here is why:
I checked the answer here but it does not solve my problem. I would like to find a way to create a separate Firefox Profile and use it in Selenium Test Execution or any other way to solve this problem programmatically in Selenium if possible.