Bugs item #1845893, was opened at 2007-12-06 17:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1845893&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: HtmlUnit plugin
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mike (mtc3b)
Assigned to: Nobody/Anonymous (nobody)
Summary: No way to click input of type button

Initial Comment:
If you have HTML with an <input type="button" value="value"> you'd think that 
WebTester.clickButtonWithText("value") would allow you to click it.  
Unfortunately, clickButtonWithText utilizing HtmlUnitDialog.getButtonWithText() 
which returns only an HtmlButton (i.e. a <button> element).  Beyond potentially 
using clickElementByXPath(), you can't actually click this type of button.

Note that getButton() will work if the input has an id.  (that is <input 
type="button" value="value" id="mybutton"> can be clicked via 
getButton("value")).
HtmlUnitDialog.getButton() returns a ClickableElement, which is what 
HtmlUnitDialog.getButtonWithText() should do.

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

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

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to