Selenium Webdriver: Delete Cookies On All Domains

后端 未结 2 1321
陌清茗
陌清茗 2021-02-20 01:04

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 o

2条回答
  •  一整个雨季
    2021-02-20 01:22

    You can specify a user directory and then manipulate /Default/Cookies. This question is similar: Getting or Manipulating all cookies in Selenium Webdriver

提交回复
热议问题