티스토리 뷰

공부

[Python] Selenium clear cache

seunggabi 승가비 2020. 2. 9. 02:56
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

'공부' 카테고리의 다른 글

[Shell] Sizeof byte file  (0) 2020.02.09
[Python] Check array out of range  (0) 2020.02.09
[Python] Selenium clear cache  (0) 2020.02.09
[Python] Selenium in private mode  (0) 2020.02.09
[JS] Sort object property  (0) 2020.02.09
[JS] Sort array ASC, DESC  (0) 2020.02.09
댓글
댓글쓰기 폼