I am using python urllib2 and cookiejar to access the website. The last page of the site is too complicated to work with urllib2 (it uses javascript and frames), so I would like to open it with Selenium, but I need to transfer cookies to selenium before I can continue.
I have my cookiejar setting as follows
cj = cookielib.CookieJar()
Is there any way to iterate over this and display each cookie? It looks like I can set cookies in selenium using:
Cookie cookie = new Cookie("key", "value"); driver.manage().addCookie(cookie);
xur17 source share