공부

[Python] Selenium clear cache

승가비 2020. 2. 9. 02:56
728x90
profile = webdriver.FirefoxProfile()
profile.set_preference("browser.cache.disk.enable", False)
profile.set_preference("browser.cache.memory.enable", False)
profile.set_preference("browser.cache.offline.enable", False)
profile.set_preference("network.http.use-cache", False)
driver = webdriver.Firefox(profile)

[reference] https://stackoverflow.com/questions/18378331/clear-firefox-cache-in-selenium-ide

728x90