[Webtest] firing events

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Tue, 08 Jul 2008 11:57:41 +0200


Hi,

keyUp handling is supported on document. Are you sure that you're
handler doesn't first wait for a keyDown and/or a keyPress?

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


W C wrote:
> I'm writing my own step to fire a KeyUp event using the following code
> snippet:
>  
> element.fireEvent(new Event(element, Event.TYPE_KEY_UP, key, false,
> false, false));
> where:
> - element is the Document element of an IFrame's page
> - key is 'a'
>  
> However, the handler for that element's KeyUp event doesn't seem to get
> called. Is this supported in an IFrame?
>  
> wes
>  
> ----- Original Message ----
> From: Marc Guillemot <mguillemot@yahoo.fr>
> To: webtest@lists.canoo.com
> Sent: Friday, June 20, 2008 2:32:34 AM
> Subject: Re: [Webtest] firing events
> 
> yes and no.
> 
> HtmlUnit can handle events for keystrokes, but WebTest doesn't currently
> provide any facility for that. This means that you have to write your
> own step / code snippet to call directly HtmlUnit's API.
> 
> Cheers,
> Marc.
> -- 
> Blog: http://mguillem.wordpress.com <http://mguillem.wordpress.com/>
> 
> 
> W C wrote:
>> I'm trying to test some interactive behavior that fires on every
> keystroke.
>> Can WebTest simulate keystrokes? Can I fire the KeyUp event for specific
>> elements (not necessarily form elements) on the page?
>> 
>> wes
>> 
>>
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com <mailto:WebTest@lists.canoo.com>
> http://lists.canoo.com/mailman/listinfo/webtest
>