WebTest uses log4j. If you uses the classic WebTest classpath, you can edit log4j.properties in Webtest's lib dir.

Marc.

Zoth, Jochen wrote:
OK, how do I change the debug level for htmlunit?
webtest -d shows no htmlunit debug messages...

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Marc Guillemot
Gesendet: Dienstag, 1. August 2006 11:18
An: [EMAIL PROTECTED]
Betreff: Re: AW: [Webtest] submit forms using the enter key

Hi Jochen,

try to set the log level to debug (in particulary for what concerns htmlunit) to see what happens.

Marc.

Zoth, Jochen wrote:
Hi Marc,

Thanks for your suggestion, I tried it on a login form

<setInputField name="Pass" value="aaa" />
<setInputField name="User" value="bbb" />

<scriptStep language="javascript">
        item = document.getOneHtmlElementByAttribute('input', 'name', 'Pass');
        item.keyDown(13);
</scriptStep>

to simulate a user pressing enter after entering username and pass, but nothing 
happened. The input fields are filled with aaa / bbb and the scriptStep is 
executed, but it doesn't fire the form.

I also tried some key codes of "normal" characters, nothing is entered into the 
input field.

Jochen.


-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Marc Guillemot
Gesendet: Montag, 31. Juli 2006 15:28
An: [EMAIL PROTECTED]
Betreff: Re: [Webtest] submit forms using the enter key

Hi Jochen,

there is currently no WebTest step doing this, but you can use a script for instance Groovy to call directly keyDown on the element you want:
http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/html/HtmlElement.html#keyDown(int)

Marc.

Zoth, Jochen wrote:
Hi,

I'm looking for a way to submit form data like pressing the enter key
after filling an input field, instead of using the <clickButton
value="OK"/> way.

I need this because of a buggy application behaving different on some
forms submitted by pressing enter, instead of using the submit button.

Any ideas?

Jochen.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to