>>> thanks for your reply. Yes, it is really a feature. We use customized 
>>> YUI-dialogues like on 
>>> http://developer.yahoo.com/yui/examples/container/dialog-quickstart.html.
>> I don't see there anything about malformed html as a "feature". Are you
>> really sure that this button outside the form is not from you?
> 
> Yes. Therefore I posted the link above. You can verify it by clicking on 
> "Show dialog1" in the YUI example. Then inspect a nested form input element 
> and the button called "Submit"with firebug. You will notice that it's really 
> outside the form. Not what we call "least surprise"...

ok, you're right. I've looked at the page, but I didn't try the examples

> 
>>> I will work around with a custom ant webtest tag so far. It clicks the 
>>> button right with this code line:
>>>
>>> HtmlPage page = (HtmlPage) ((HtmlButton) 
>>> page.getDocumentElement().getHtmlElementsByTagName("button").get(0)).click();
>>>
>>> That means that the current version of HtmlUnit does it already but not in 
>>> conjunction with WebTest...
>> which version do you mean?
> 
> Version of WebTest I use is: R_1551
> Version of HtmlUnit in the WebTest distibution is 1.11.

I don't understand why this should work. Does it identify an other
button that the you've selected by XPath? Normally, once the button is
identified, WebTest calls click() on it, just like what you propose as
workaround.

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

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

Reply via email to