In selenium you can only delete cookies on the current domain, but would it be possible to navigate to the file where Firefox is storing the cookies and either delete the file or overwrite it? I've been looking around, but can't find where selenium stores the cookies.
相关问题
- Selecting an item from a combo box selenium driver
- Selenium in Java is not finding element when using
- How to send text to the search field through Selen
- What is the difference in “find_element_by_xpath”
- Cloudflare and Chromedriver - cloudflare distingui
Selenium doesn't store the cookies, the browser does. So the answer to "where [the browser] stores the cookies" will be different for each browser. But since Selenium always starts the browser with a clean profile, you shouldn't have to do this - there are no cookies when the browser starts.
You can specify a user directory and then manipulate
<userdir>/Default/Cookies
. This question is similar: Getting or Manipulating all cookies in Selenium Webdriver