Answer the question
In order to leave comments, you need to log in
How to get all cookies with Selenium?
There is a site from which you need to get the following cookies:
cookies = driver.get_cookies()
[{'domain': 'livefootball.ru', 'httpOnly': False, 'name': 'atexc', 'path': '/', 'secure': False, 'value': '0,1,2,3,4,5,6,7,$$'}, {'domain': 'livefootball.ru', 'httpOnly': False, 'name': 'atref', 'path': '/', 'secure': False, 'value': 'noref$$'}]
Answer the question
In order to leave comments, you need to log in
this is the idea of cookies - you, being on the site, can only work with the cookies of the current site
if you could work with all browser cookies at all, this would be a serious jamb in safety - because then you can steal your sessions on other resources
If you know the list domains in advance, you can cycle through each of them and pick up the current cookies
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question