Session cookie cleared when open new window with webdriver
I'm using Webdriver, Internet Explorer 7 and Windows Vista. When I click on a link that opens a new window through a JavaScript function using window.open(url), the window opens but instead of showing the intended screen it shows the login page since the session cookie has been cleared.
Is there any way of keeping that cookie allowing me to avoid to login anytime I open a window this way?
Thanks in advan开发者_运维技巧ce.
I've run into this before, and to fix it I simply changed to protected mode (IE only):
Maybe this will work for you too?
I've run into this and to fix it I simply changed to NON-protected mode, unchecking it for the 4 zones (IE only):
Maybe this will work for you too? Also answered here
driver.manage().deleteAllCookies()
精彩评论