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.getLinkWithTextAfterText(HttpUnitDialog.java:700)
 
at 
net.sourceforge.jwebunit.HttpUnitDialog.clickLinkWithTextAfterText(HttpUnitDialog.java:692)
 
at 
net.sourceforge.jwebunit.WebTester.clickLinkWithTextAfterText(WebTester.java:905) 
at 
net.sourceforge.jwebunit.WebTestCase.clickLinkWithTextAfterText(WebTestCase.java:367) 
at com.tarmacaviation.apron.webtest.UserWebTest.testUser(UserWebTest.java:47) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.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

Reply via email to