Hi all,

I needed a method to access HtmlUnit's type() method, so that I could enter
in text directly to an input (i.e. calling onKeyPress without calling
onChange). In the latest SVN there is a new method to access the HtmlElement
directly, so I could implement the type() method as follows:

IElement element = getElementById(element_id);
HtmlElement actual = ((HtmlUnitElementImpl) element).getHtmlElement();
actual.type(text);

Would this be helpful enough to include in the public API for JWebUnit? I
think it's platform-independent enough to go into the main API, but I think
we'd also need to add blur(). My preference is to keep it as above for now.

Cheers
Jevon
------------------------------------------------------------------------------

_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to