Whenever we invoke Firefox, under \'/tmp\' directory rust_mozprofile directories are getting created. As Firefox internally calls Geckodriver we are not sure whether Firefox
A solution is to use driver.quit() this closes all browsers and takes care of the profiles
driver.quit()
Another solution is to add a custom profile
fp = webdriver.FirefoxProfile('specify location to profile .default') driver = webdriver.Firefox(firefox_profile=fp)