Is it Firefox or Geckodriver, which creates “rust_mozprofile” directory

前端 未结 4 1176
天涯浪人
天涯浪人 2020-11-28 15:48

Whenever we invoke Firefox, under \'/tmp\' directory rust_mozprofile directories are getting created. As Firefox internally calls Geckodriver we are not sure whether Firefox

4条回答
  •  野性不改
    2020-11-28 16:28

    A solution is to use driver.quit() this closes all browsers and takes care of the profiles

    Another solution is to add a custom profile

    fp = webdriver.FirefoxProfile('specify location to profile .default') 
    driver = webdriver.Firefox(firefox_profile=fp)
    

提交回复
热议问题