« Return to Thread: onblur/onkeyup event

Re: onblur/onkeyup event

by Marc Guillemot :: Rate this Message:

Reply to Author | View in Thread

Hi Christian,

this part of htmlunit has been incorrectly implemented: the method
should not be on the WebClient but on a HtmlPage.
Nevertheless WebTest could probably already make use of it calling
moveFocusToElement when executing an action step (setXXX, clickXxx).
Perhaps could you open a WebTest issue with a minimal example (both html
and webtest script) what would allow to integrate such a test in
WebTest's selftests.

Marc.

bat wrote:

> hi marc,
>
> i'm afraid i don't have the skills to fix the problem ;-)
>
> but i've taken a cursory glance at the
> http://htmlunit.sourceforge.net/javascript-howto.html htmlunit site  and i
> was quite surprised to read this:
> "Some event handlers are already implemented and will be triggered at the
> appropriate time (see table below).
> ...
> onblur: The method WebClient.moveFocusToElement(...) will change the focus
> to the appropriate element. This event will be triggered when an element
> loses focus."
>
> it must be a misunderstanding on my part, but that statement leaves me
> rather confused.
>
> greetings
>
> christian
>
>
>
>> So you may find a workaround this way but the safer way would surely be
>> to submit a patch allowing htmlunit/webtest to handle these events
>> natively ;-)
>>

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

 « Return to Thread: onblur/onkeyup event