开发者

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):

Session cookie cleared when open new window with webdriver

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):

Session cookie cleared when open new window with webdriver

Maybe this will work for you too? Also answered here


driver.manage().deleteAllCookies()
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜