Did you resolve your issue? Can you gain access to an "id" attribute for the link? ie. <A id="guid-user-name-etc" href="/servlet/Service?SURROGATE=105252&OPERATION=select".
The ID is not visible on the UI, well maybe in lynx browser. LOL. The visual text would still display "Delete". This is not in the API but could be easily added as a patch or RFE. Please submit one or the other if necessary. Can you use "clickLinkWithText(String, int) and pass in the "X" link on the page? HTH, See Ya.... Nick > -----Original Message----- > From: Michael Fuchs [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 31, 2004 5:45 AM > To: [EMAIL PROTECTED] > Subject: [Jwebunit-users] Link in Table (clickLinkWithTextAfterText) > > > Hi, > > I'm started to wire up web tests for a web application and am > stuck now at the > problem to click a link within a table. The table is simple, > a list of users > with an edit and a delete button on each line. I now want to > edit and delete > a given test user. I tried to use the > clickLinkWithTextAfterText method with > the parameters user name and link text, in the hope that the first > edit/delete button aftter the user name is clicked. However, > I just get an > error out of xerces (see below). Am I using a wrong version > of xerces? And > are there other means to get the same functionality? For now > I just see to > give each link a unique ID which is constructed by JSP like > "linkUserEdit_"+userName. But I don't like this approach > much, since I feel > it's to much code just for testing. > > Cheers, Michael > > org.w3c.dom.DOMException: NOT_SUPPORTED_ERR: The > implementation does not > support the requested type of object or operation. at > org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source) at > org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source) at > org.apache.html.dom.HTMLDocumentImpl.cloneNode(Unknown Source) at > com.meterware.httpunit.ParsedHTML.getDOM(ParsedHTML.java:798) at > com.meterware.httpunit.WebResponse.getDOM(WebResponse.java:461) at > net.sourceforge.jwebunit.HttpUnitDialog.getLinkWithTextAfterTe > xt(HttpUnitDialog.java:700) > at > net.sourceforge.jwebunit.HttpUnitDialog.clickLinkWithTextAfter > Text(HttpUnitDialog.java:692) > at > net.sourceforge.jwebunit.WebTester.clickLinkWithTextAfterText( > WebTester.java:905) > at > net.sourceforge.jwebunit.WebTestCase.clickLinkWithTextAfterTex > t(WebTestCase.java:367) > at > com.tarmacaviation.apron.webtest.UserWebTest.testUser(UserWebT > est.java:47) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > orImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > odAccessorImpl.java:25) > at > org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(I > nternalAntRunner.java:377) > at > org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main( > InternalAntRunner.java:135) > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Jwebunit-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > - - - - - - This e-mail message is intended only for the use of the individual or entity identified in the alias address of this message and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this e-mail message is strictly prohibited. If you have received this e-mail message in error, please notify the sender immediately by reply e-mail and delete this message from your system. Thank you. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Jwebunit-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jwebunit-users