I am coding with Python 3 and Selenium. I want automatically clear the cache in chrome, the timeframe does not matter.
This is my current solution:
driver.get('chrome://settings/clearBrowserData')
time.sleep(3)
driver.find_element_by_xpath('//settings-ui').send_keys(Keys.ENTER)
time.sleep(10)
This solution however does not click the "Delete Data" Button and I dont know why...
Chromedriver version is 85.0.4183.87 and Selenium 3.141.