Hi Markus,
I think that the meta http-equiv set-cookie is not currently handled in
htmlunit.
Can you please open a issue by htmlunit for that?
Marc.
Markus Maier wrote:
Hi to all!
I have really big problems with the cookie handling.
I have a login page which will give me a cookie:
<html>
<head>
<meta http-equiv='content-type' content='text/html; charset=UTF-8'>
<meta http-equiv='set-cookie' content='webm=none; path=/;'>
</head>
<body>
...
My seps so far:
<setInputField description="set password"
name="WEBMv-Admin-Password"
value="123456" />
<clickButton
label="Login"
description="Click the submit button"
saveResponse="true"
/>
So far so good. The login works (There is a successor page).
But now I can't store or verify a cookie:
<storeCookie description="store the cookie" name="webm"
property="cookie" />
gives me:
com.canoo.webtest.engine.StepFailedException: No cookies set!, Step:
StoreCookie at D:\webtest\modules\adminlogin.xml:24: with
(taskName="storeCookie")
So where is the problem??
Another question:
Do I have to handle cookies by myself?? Are the cookies not
automatically stored and sent by every invoke?
I actually don't have not check the value of the cookie. I just need to
send it to the webserver for verification (session id).
Hope you can help me with that.
Regards,
Markus
_______________________________________________________________________
Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos.
Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=022222
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest