How is it possible to save the session id or the cookies I need to stay logged in at a website after the login, when I'm using HtmlUnitDriver from Selenium 2.0.
Asked
Active
Viewed 1,325 times
1 Answers
-1
Enabling the cookies at first:
webClient.getCookieManager().setCookiesEnabled(true);//enable cookies
Check out the Cookies it has some more info and extra code you might want to check out

Decypher
- 690
- 1
- 8
- 30
-
What is webClient? You are confusing Selenium with HtmlUnit I believe. – Erica Kane Apr 01 '15 at 22:32