Thank you Julien! This looks very interesting.
On 6/16/07, Julien HENRY <[EMAIL PROTECTED]> wrote:
Hi Dan,
For complex html element matching, you should use
XPath expressions:
clickElementByXPath("//a[text()=\"edit\"][4]")
With some more sophisticated expression, you should be
able to match the first "edit" link following "entity
d".
++
Julien
--- Dan Kigelman <[EMAIL PROTECTED]> a écrit :
> Hi,
>
> I am a new user of jwebunit (about 2.5 days), and I
> would first like to
> thank you for your work--the interface is a pleasure
> to work with.
>
> I am trying to test a database-entity administration
> page (list, view, edit,
> delete):
>
> entity a edit - delete
> entity b edit - delete
> entity c edit - delete
> entity d edit - delete
> entity e edit - delete
>
> To click on d's edit link, how would I do so?
>
> I am currently trying this and failing:
> assertTextPresent("entity d");
> clickLinkWithText("edit");
>
> Is there a "standard" way to do this? I'm thinking
> of getting the source
> code and counting the number of entities to call
> clickLinkWithText("edit",
> n), but I'm wondering if there is something
> simpler...
>
> Thank you,
>
> -- Dan Kigelman
> >
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2
> express and take
> control of your XML. No limits. Just data. Click to
> get it now.
> http://sourceforge.net/powerbar/db2/>
_______________________________________________
> JWebUnit-users mailing list
> JWebUnit-users@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo!
Mail
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users