Discussion:
[selenium-users] Not able to get ID from the cookies using selenium
h***@codecraft.co.in
2018-12-04 10:49:52 UTC
Permalink
Hi,
I want to capture the ID from the Cookies using selenium. when trying to
store the cookies data to Set/List then it gives Incompatible issue and
unable capture whole data which i am getting from the cookies.

attached screenshot
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/addf5777-5435-467b-a825-d04e10d86c03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
a***@gmail.com
2018-12-04 13:53:45 UTC
Permalink
Hope this may help....



Set<Cookie> allCookies = driver.manage().getCookies();

for (Cookie loadedCookie : allCookies) {

System.out.println(String.format(“%s -> %s”, loadedCookie.getName(),
loadedCookie.getValue()));

}



Regards,

Anam



On Tuesday, December 4, 2018 at 7:06:18 PM UTC+5:30,
Post by h***@codecraft.co.in
Hi,
I want to capture the ID from the Cookies using selenium. when trying to
store the cookies data to Set/List then it gives Incompatible issue and
unable capture whole data which i am getting from the cookies.
attached screenshot
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/afc81243-fa7b-4d91-bee2-f4aad4bc0e51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...