2 messages in com.canoo.lists.webtest[Webtest] Post a request without content
FromSent OnAttachments
Philippe Schoch18 Apr 2006 06:58 
Petter Måhlén18 Apr 2006 07:03 
Subject:[Webtest] Post a request without content
From:Philippe Schoch (phil@ergon.ch)
Date:04/18/2006 06:58:59 AM
List:com.canoo.lists.webtest

Hi,

I have the problem to address a lot of anonymous links in a (jsf-)page that execute some javascript-code (at 'onClick'). 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: JavaScriptEngine not found') the js-code is not run in the 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 method="POST">. 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,

Philippe