Feature Requests item #1037202, was opened at 2004-09-29 20:41
Message generated for change (Comment added) made by henryju
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1037202&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: None
Status: Open
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Julien HENRY (henryju)
Summary: Need ability to assert and click links by name
Initial Comment:
I have 2 links with the same button image, no text, and
no id value. The only difference between them is their
name and the parameters they pass to a javascript
function on onclick.
<a name="button1" href="#"><img src="img1.gif"/></a>
<a name="button2" href="#"><img src="img1.gif"/></a>
Jwebunit should implement http unit functions for
clicking a link based on the link name (button1 or
button2 in my example.) I believe the method in
WebResponse is getLinkWithName.
Thanks
Donavon
[EMAIL PROTECTED]
----------------------------------------------------------------------
>Comment By: Julien HENRY (henryju)
Date: 2006-06-03 00:09
Message:
Logged In: YES
user_id=1235926
A first solution is to use :
clickElementByXPath("//[EMAIL PROTECTED]'button1']")
But it's easy to add **ByName methods.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1037202&group_id=61302
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development