Feature Requests item #1874971, was opened at 2008-01-18 12:10
Message generated for change (Comment added) made by mtc3b
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1874971&group_id=61302

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core API
Group: Release 1.4
Status: Open
Priority: 5
Private: No
Submitted By: Joe Heth (jheth)
Assigned to: Nobody/Anonymous (nobody)
Summary: Button input type not recognized

Initial Comment:
Add more support for the HtmlButtonInput type from HtmlUnit. 

The assertButtonPresentWithText searches only <button> HTML elements. It should 
also search input fields with type=button. 

The assertSubmitButton should also be updated to search HtmlButtonInput types.  
It currently searches HtmlSubmitButton, HtmlImageSubmit, HtmlButton, but NOT 
HtmlButtonInput.

Thanks.

----------------------------------------------------------------------

Comment By: Mike (mtc3b)
Date: 2008-01-18 16:25

Message:
Logged In: YES 
user_id=1954039
Originator: NO

In the current trunk (1.5), assertButtonPresentWithText will find inputs
of type button, submit, and reset as well as button html elements.  This
was added a few weeks back.

As to the second enhancement, I believe the described behavior is correct.
 <input type="button"> is not a submit button.  It doesn't actually do
anything unless you add JavaScript to it, unlike the other three types (the
1.5 code doesn't just look for HtmlButton but also makes sure its type is
submit (<button type="submit">)).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1874971&group_id=61302

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to