[Webtest] Post a request without content
Tue, 18 Apr 2006 16:03:38 +0200
This is how I do it:
<emulateSetHiddenInputField description="user name" name="email"
<emulateSetHiddenInputField description="password" name="password"
> -----Original Message-----
> From: firstname.lastname@example.org
> [mailto:email@example.com] On Behalf Of Philippe Schoch
> Sent: Tuesday, April 18, 2006 3:59 PM
> To: firstname.lastname@example.org
> Subject: [Webtest] Post a request without content
> I have the problem to address a lot of anonymous links in a
> To address via XPath is not suitable and prone to fail on
> changes made
> to the page.
> One try was to execute the js-code directly from webtest with
> 'scriptStep'. Aside the problem I encountered (see email 'scriptStep:
> scope of the
> page (what I was afraid of. But I thought I can get over that when my
> Classloader-problem has been solved).
> So another try was to set the hidden field via
> 'emulateSetHiddenInputField' and to submit the form. That's what the
> onClick-js-code is doing.
> To submit the form I only see the solution with <invoke
> But I have to add a contentfile which content seems to be
> very complex.
> Or can I enforce a submit()?
> Does somebody have another idea or is Webtest not made to deal
> efficiently with such a problem?
> Thanks for help,