-
Hi i need my script to save cookies from websites that would later be used. I am using Driver. driver.delete_all_cookies() seems to work fine driver.save_cookies(name="cookies.txt") give this error: Should i just use some of selenium driver methods to do cookies or i can use this one. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
See #2705 (comment) sb.save_cookies(name="cookies.txt")
sb.load_cookies(name="cookies.txt")
sb.delete_all_cookies() # Duplicate: self.clear_all_cookies()
sb.delete_saved_cookies(name="cookies.txt")
sb.get_saved_cookies(name="cookies.txt")
sb.get_cookie(name)
sb.get_cookies()
sb.add_cookie(cookie_dict)
sb.add_cookies(cookies) |
Beta Was this translation helpful? Give feedback.
See #2705 (comment)
sb
has all the cookie methods (not thedriver
).