I am using selenium with geckodriver, My goal is to use a pre-existing session's profile on a defined path rather than default directory tmp
.
As I start session with a new profile:
from selenium import webdriver
profile = webdriver.FirefoxProfile()
profile gets saved by default to directory /tmp
>>> os.system('ls -lt ../../../tmp')
total 25248
drwx------ 2 root root 4096 Sep 20 11:10 tmpqzp6uf3c
I'd like to change the default directory /tmp
to an another directory I define for any new profile.
Thanks,