Hi all,Could you please let me know how to access cookies from multiple domains of a Chrome Browser?Note: driver.manage().getCookies() - this one gives cookies for the current domain only.Thank You!
--To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e1853a40-5b9a-494d-98e9-7bd34d1ad7ac%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/O4nXra2kleM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
driver.get("domain URL of interest here"); //or equivalent command to navigate to a given URL
Thank you for the response David. Can you pls suggest how do I navigate to a particular domain? In my case the domain name is always the same.
On Jan 25, 2018 2:31 PM, "David" <mang...@gmail.com> wrote:
AFAIK, there is no direct way to do it via Selenium or pure javascript.Your best option if you know the list of domains is to navigate to each domain then call get cookies. And unless you can pull from browser history (via javascript, etc.) to get the list of domains that have been visited, there's no way to go through all visited domains for cookies.
On Wednesday, January 24, 2018 at 8:14:37 PM UTC-8, Sanju wrote:Hi all,Could you please let me know how to access cookies from multiple domains of a Chrome Browser?Note: driver.manage().getCookies() - this one gives cookies for the current domain only.Thank You!
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/O4nXra2kleM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.