How to save and restore all cookies with Selenium RC?

前端 未结 2 742
醉梦人生
醉梦人生 2021-01-15 06:37

I\'m running complex tests that create many cookies for different sections of my web site.

Occasionally I have to restart the browser in the middle a long test and s

相关标签:
2条回答
  • 2021-01-15 07:23

    I think you should crate a browser profile and start server for that profile. So all your cookies get saved/modified during every execution. I've gievn these details as answer for another question . Please refer it.. It is given for java client and firefox but I'm sure you can implement it as per your requirements.

    0 讨论(0)
  • 2021-01-15 07:34

    Yes, sure. Look at getCookie, getCookieByName and createCookie methods.

    0 讨论(0)
提交回复
热议问题