Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

clear cookies selenium python

"""
for cookies use 'delete_all_cookies()' function

>>> driver.delete_all_cookies()

for cache create profile
"""
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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #clear #cookies #selenium #python
ADD COMMENT
Topic
Name
2+9 =