Re: [JWebUnit-users] Re : Re : Issues with ClickElementByXPath
Brought to you by:
henryju
From: Eric J. <eje...@ho...> - 2010-10-13 14:39:59
|
Jothi, You can find instructions on how to build JWebUnit here, http://jwebunit.sourceforge.net/building-maven.html From: lakshmi somavaram [mailto:lso...@gm...] Sent: Wednesday, October 13, 2010 9:36 AM To: Usage problems for JWebUnit Subject: Re: [JWebUnit-users] Re : Re : Issues with ClickElementByXPath Hi Julien, Could you please point me to where the instructions are on how to build a snapshot from trunk? Thank you, Jothi. On Tue, Oct 12, 2010 at 1:14 PM, Julien HENRY <he...@ya...<mailto:he...@ya...>> wrote: Hi Lakshmi, >Thank you for trying to release an updated version. May I know, when I can >expect the latest version. No date planned for now. You can still build a snapshot from trunk that is very stable as we didn't do so much changes. I will try to do a release before end of october. >Is it possible to use Jwebunit to test applications written in ASP.Net? JWebUnit simulates a web browser, so it can test any web application, whatever is the server side technology. Regards, Julien > >De : lakshmi somavaram <lso...@gm...<mailto:lso...@gm...>> >À : Usage problems for JWebUnit <jwe...@li...<mailto:jwe...@li...>> >Envoyé le : Mar 12 octobre 2010, 19h 58min 43s >Objet : Re: [JWebUnit-users] Re : Issues with ClickElementByXPath > > >Hi Julien, > >Thank you for trying to release an updated version. May I know, when I can >expect the latest version. > >Is it possible to use Jwebunit to test applications written in ASP.Net? > >My original issue: My application starts of as a J2EE application and then it >makes requests to another application that is written in ASP.Net. It is in the >other application that I am getting an error. So, just wanted to know if >JWebUnit can support ASP.Net applications. > >Thank you, >Lakshmi. > > >On Wed, Oct 6, 2010 at 2:18 AM, Julien HENRY <he...@ya...<mailto:he...@ya...>> wrote: > >I worked yesterday on updating JWebUnit to use HtmlUnit 2.8. I'll wait a few >days before releasing in order to let early adopters a chance to build a >snapshot from trunk and report any regression. >> >>Regards, >> >>Julien >> >>> >>>De : lakshmi somavaram <lso...@gm...<mailto:lso...@gm...>> >>>À : Usage problems for JWebUnit <jwe...@li...<mailto:jwe...@li...>> >>>Envoyé le : Mer 6 octobre 2010, 0h 34min 52s >>>Objet : Re: [JWebUnit-users] Re : Issues with ClickElementByXPath >>> >>> >>> >>>Hi Julien, >>> >>>I had a similar issue in the begining of the year. It was due to the embedded >>>Java Script. After installing JWebUnit2.3 that problem disappeared. I think it > >>>was due to the JavaScript support in the htmlunitEngine. >>> >>>I know there is an updated version of htmlunit-2.8 (I think). Will JWebUnit be > >>>released any time soon with the new versions of htmlunit files? >>> >>>Thank you, >>>Lakshmi >>> >>> >>>On Tue, Oct 5, 2010 at 3:59 PM, Julien HENRY <he...@ya...<mailto:he...@ya...>> wrote: >>> >>>Hi, >>>> >>>>According to me the click was successful but the processing of the event produce >>>> >>>>an error on the server: >>>> >>>> >>>>500 Internal Server Error for >>>>https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do >>>> >>>>Please check your server logs to know what is the problem. >>>> >>>>Regards, >>>> >>>>Julien >>>> >>>> >>>>> >>>>>De : lakshmi somavaram <lso...@gm...<mailto:lso...@gm...>> >>>>>À : Usage problems for JWebUnit <jwe...@li...<mailto:jwe...@li...>> >>>>>Envoyé le : Mar 5 octobre 2010, 22h 08min 20s >>>>>Objet : [JWebUnit-users] Issues with ClickElementByXPath >>>>> >>>>> >>>>> >>>>>Dear Users, >>>>> >>>>>I am having issues with ClickElementByXPath function. I am listing below the > >>>>>HTML code, JWebUnit Code and the error message. I am getting "exception invoking >>>>> >>>>>jsxFunction_go" and "http 500 internal server error". >>>>>Please let me know how this can be solved. >>>>> >>>>>I am using the JWebunit 2.3. >>>>> >>>>>Thank you, >>>>>Lakshmi. >>>>> >>>>>My HTML code: >>>>>---------------------- >>>>><a tabindex="101" href="javascript:selCust(1937890)"> >>>>> TRIPLE D FARMS LLC >>>>> </a> >>>>>-------------------------------------------------------------------------- >>>>> >>>>><script language="JavaScript"> >>>>><!-- >>>>> >>>>> function selCust(coreId) >>>>> { >>>>> document.ResultForm.pageAction.value = "SelCust"; >>>>> document.ResultForm.coreId.value = coreId; >>>>> document.ResultForm.submit(); >>>>> } >>>>>//--> >>>>></script> >>>>> >>>>>JWEBUNIT Code: >>>>>-------------------------- >>>>>clickElementByXPath("//a[@tabindex='101' and >>>>>@href='javascript:selCust(1937890)']"); >>>>>Tried also,clickElementByXPath("//a[@tabindex='101' and @href=contains(@href, >> >>>>>'javascript:')]"); >>>>> >>>>>ERROR: >>>>>======= EXCEPTION START ======== >>>>>Exception class=[java.lang.RuntimeException] >>>>>com.gargoylesoftware.htmlunit.ScriptException: Exception invoking >>>>jsxFunction_go >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527) >>>>> >>>>> >>>>> at >net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:400) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:884) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:302) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:369) >>>>> >>>>> >>>>> at >>>>com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225) >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718) >>>>> >>>>> >>>>> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676) >>>>> >>>>> >>>>> at >>>>org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136) >>>>> at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038) >>>>> at >>>org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) >>>>> at >>>>>org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) >>> >>>>> at >>>>>org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999) >>>>> >>>>> >>>>> at >org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991) >>>>> at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895) >>>>> at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) >>>>> at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) >>>>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >>>>> at >>>>>com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896) >>>>> >>>>> >>>>> at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350) >>>>> at >>>>com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304) >>>>> at >>>>>com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420) >>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2136) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:553) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:631) >>>>> >>>>> >>>>> at >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1254) >>>>> at >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212) >>>>> at >>>com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179) >>>>> at >>>>>net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.clickElementByXPath(HtmlUnitTestingEngineImpl.java:1854) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.jwebunit.junit.WebTester.clickElementByXPath(WebTester.java:2591) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.jwebunit.junit.WebTestCase.clickElementByXPath(WebTestCase.java:2082) >>>>> >>>>> >>>>> at >>>>>gov.usda.fsa.tco.acretests.ACRETests.testACREPRSSetup(ACRETests.java:1201) at >> >>>>>junit.framework.TestSuite.run(TestSuite.java:227) >>>>> at >>>>>org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) > >>>>> at >>>>>org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) >>>>> >>>>> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) >> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) >>>>> >>>>> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) >>>>> >>>>> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) >>>>> >>>>> >>>>> at >>>>>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) >>>>> >>>>> >>>>>Caused by: java.lang.RuntimeException: Exception invoking jsxFunction_go >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190) >>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157) >>>>> >>>>> >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416) >>>>> >>>>> >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521) >>>>> >>>>> >>>>> ... 58 more >>>>>Caused by: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 > >>>>>Internal Server Error for >>>>>https://outletscimssar.cert.sc.egov.usda.gov/SCIMSCustSearch/SearchResult.do >>>>> at >>>>>com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:509) >>>>> >>>>> >>>>> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:304) >>>>> at >>>>>com.gargoylesoftware.htmlunit.History.goToUrlAtCurrentIndex(History.java:176) > >>>>> at com.gargoylesoftware.htmlunit.History.go(History.java:138) >>>>> at >>>>>com.gargoylesoftware.htmlunit.javascript.host.History.jsxFunction_go(History.java:132) >>>>> >>>>> >>>>> 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:585) >>>>> at >>>>>net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164) >>> >>>>> ... 68 more >>>>> >>>>>======= EXCEPTION END ======== >>>>> >>>>> >>>> >>>>------------------------------------------------------------------------------ > > >>>>Beautiful is writing same markup. Internet Explorer 9 supports >>>>standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >>>>Spend less time writing and rewriting code and more time creating great >>>>experiences on the web. Be a part of the beta today. >>>>http://p.sf.net/sfu/beautyoftheweb >>>>_______________________________________________ >>>>JWebUnit-users mailing list >>>>JWe...@li...<mailto:JWe...@li...> >>>>https://lists.sourceforge.net/lists/listinfo/jwebunit-users >>>> >>>> >>> >> >>------------------------------------------------------------------------------ >>Beautiful is writing same markup. Internet Explorer 9 supports >>standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >>Spend less time writing and rewriting code and more time creating great >>experiences on the web. Be a part of the beta today. >>http://p.sf.net/sfu/beautyoftheweb >>_______________________________________________ >>JWebUnit-users mailing list >>JWe...@li...<mailto:JWe...@li...> >>https://lists.sourceforge.net/lists/listinfo/jwebunit-users >> >> > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ JWebUnit-users mailing list JWe...@li...<mailto:JWe...@li...> https://lists.sourceforge.net/lists/listinfo/jwebunit-users |