Read the following links:

It may have something to do with DOCTYPE declared in your HTML source.
Don't know.

http://www.mail-archive.com/jwebunit-users@lists.sourceforge.net/msg00092.ht
ml

http://www.google.com/search?hl=en&lr=&client=firefox-a&rls=org.mozilla%3Aen
-US%3Aofficial&q=DOMException+NOT_SUPPORTED_ERR&btnG=Search

HTH,    (((Hope this Helps!!!)))

Nick Neuberger

> -----Original Message-----
> From: John Lianoglou [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 16, 2005 4:38 AM
> To: jwebunit-users@lists.sourceforge.net
> Subject: Re: [Jwebunit-users] Runtime Exception when calling
> WebTester.assertElementPresent()
> 
> 
> Good call on that, unfortunately that didn't seem to change  
> anything...  :-)
> 
> 
> 
> jL
> 
> On May 16, 2005, at 4:44 AM, Martijn Dashorst wrote:
> 
> > Remove xerces-2.4.0.jar from the classpath. This one is duplicate  
> > and much older than xercesImpl-2.6.2.jar.
> >
> > Martijn
> >
> > On May 16, 2005, at 5:43 AM, John Lianoglou wrote:
> >
> >
> >> Whenever I attempt to call WebTester.assertElementPresent() ...  
> >> I'm using the latest Eclipse, and my project contains the  
> >> following versions of the libraries:
> >>
> >> + xerces-2.4.0.jar
> >> + xercesImpl-2.6.2.jar
> >> + xml-apis-1.0.b2.jar
> >> + jwebunit-1.2.jar
> >>
> >> Here's the stack trace:
> >>
> >> java.lang.RuntimeException: 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.getElement 
> >> (HttpUnitDialog.java:886)
> >>     at net.sourceforge.jwebunit.WebTester.assertElementPresent 
> >> (WebTester.java:692)
> >>     at org.fulbrightonline.jwebunit.admin.SimpleTest.testLogin 
> >> (SimpleTest.java:52)
> >>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>     at sun.reflect.NativeMethodAccessorImpl.invoke 
> >> (NativeMethodAccessorImpl.java:39)
> >>     at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> >> (DelegatingMethodAccessorImpl.java:25)
> >>     at java.lang.reflect.Method.invoke(Method.java:324)
> >>     at junit.framework.TestCase.runTest(TestCase.java:154)
> >>     at junit.framework.TestCase.runBare(TestCase.java:127)
> >>     at junit.framework.TestResult$1.protect(TestResult.java:106)
> >>     at junit.framework.TestResult.runProtected(TestResult.java:124)
> >>     at junit.framework.TestResult.run(TestResult.java:109)
> >>     at junit.framework.TestCase.run(TestCase.java:118)
> >>     at junit.framework.TestSuite.runTest(TestSuite.java:208)
> >>     at junit.framework.TestSuite.run(TestSuite.java:203)
> >>     at  
> >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests 
> >> (RemoteTestRunner.java:436)
> >>     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run 
> >> (RemoteTestRunner.java:311)
> >>     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main 
> >> (RemoteTestRunner.java:192)
> >>
> >>     at net.sourceforge.jwebunit.HttpUnitDialog.getElement 
> >> (HttpUnitDialog.java:888)
> >>     at net.sourceforge.jwebunit.WebTester.assertElementPresent 
> >> (WebTester.java:692)
> >>     at org.fulbrightonline.jwebunit.admin.SimpleTest.testLogin 
> >> (SimpleTest.java:52)
> >>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>     at sun.reflect.NativeMethodAccessorImpl.invoke 
> >> (NativeMethodAccessorImpl.java:39)
> >>     at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> >> (DelegatingMethodAccessorImpl.java:25)
> >>     at java.lang.reflect.Method.invoke(Method.java:324)
> >>     at junit.framework.TestCase.runTest(TestCase.java:154)
> >>     at junit.framework.TestCase.runBare(TestCase.java:127)
> >>     at junit.framework.TestResult$1.protect(TestResult.java:106)
> >>     at junit.framework.TestResult.runProtected(TestResult.java:124)
> >>     at junit.framework.TestResult.run(TestResult.java:109)
> >>     at junit.framework.TestCase.run(TestCase.java:118)
> >>     at junit.framework.TestSuite.runTest(TestSuite.java:208)
> >>     at junit.framework.TestSuite.run(TestSuite.java:203)
> >>     at  
> >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests 
> >> (RemoteTestRunner.java:436)
> >>     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run 
> >> (RemoteTestRunner.java:311)
> >>     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main 
> >> (RemoteTestRunner.java:192)
> >>
> >>
> >> Strangely enough, I can invoke assertFormPresent("my-form-id")  
> >> without any problems... which is weird coz it references the form  
> >> i'm looking for by ID... why would it work for forms, but not for  
> >> general elements?
> >>
> >>
> >>
> >> Best,
> >> jL
> >>
> >>
> >> -------------------------------------------------------
> >> This SF.Net email is sponsored by Oracle Space Sweepstakes
> >> Want to be the first software developer in space?
> >> Enter now for the Oracle Space Sweepstakes!
> >> http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
> >> _______________________________________________
> >> Jwebunit-users mailing list
> >> Jwebunit-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
> >>
> >>
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by Oracle Space Sweepstakes
> > Want to be the first software developer in space?
> > Enter now for the Oracle Space Sweepstakes!
> > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
> > _______________________________________________
> > Jwebunit-users mailing list
> > Jwebunit-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jwebunit-users
> >
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
> _______________________________________________
> Jwebunit-users mailing list
> Jwebunit-users@lists.sourceforge.net
> 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 Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Jwebunit-users mailing list
Jwebunit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to