Hi Marc,
The token field is generated on the server and is sent on every page request
as an hidden field and should be passed everytime I submit a post. Therefore
I need to store the token field into a property and pass this with each
post.
Also I tried using storeXPath to retrieve the value for the hidden field but
I get an exception:
"com.canoo.webtest.engine.StepFailedException: No match for xpath expression
</html/body/table/tr/td/form/input[3]>, Step: StoreXPath at
D:\CEG\Calypso\WebTest\riftest_login_1.xml:40: with
(Property="rif.usertoken", stepid="<unknown>", -> computed value="null",
XPath="/html/body/table/tr/td/form/input[3]", stepType="storeXPath")".
Please note the XPath Syntax was generated using the XPE.
Please let me know how could to resolve the XPath path problem.
Thanks & Regards,
Vinay
From: Marc Guillemot <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: [Webtest] Re: Setting property value from an hidden field
Date: Tue, 14 Feb 2006 08:11:45 +0000 (UTC)
> ...
> To test my application using webtest, I need to store this token value
when
> I request for a page and send the same when I submit the page.
>
What about just using for instance <clickButton .../> to submit a form with
all
its hidden fields?
Marc.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest