Answers for "selenium delete cookies python"

0

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)
Posted by: Guest on November-04-2021
0

selenium delete cookies python

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)
Posted by: Guest on January-28-2022

Code answers related to "selenium delete cookies python"

Python Answers by Framework

Browse Popular Code Answers by Language