|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Ajax callHi, I have a link which actually calls an Ajax.Updater to a url
(i can't access this url directly though) and using the htmlunit anchor
.click() doesn't help with javascript disabled and when i enable the javascript
- it throws an error and following is the stackTrace: com.ringringmedia.agency.internal.reporting.AdNetworkReportingException:
Failed to get spend report page for
com.ringringmedia.agency.internal.domain.AdNetworkAdvertiserAccount@62610b[id=1,adNetwork=com.ringringmedia.agency.internal.domain.AdNetwork@15f157b[id=1,name=Test
AdNetwork,active=true,currencyCode=USD],advertiser=com.ringringmedia.agency.internal.domain.Advertiser@e7f6eb[id=1,name=Nokia,active=true],username=rrcfirst,password=conring123,info=Test
Account,reference=100001,active=true]. at com.ringringmedia.agency.internal.reporting.AdmodaReportingClient.getSpendByCampaign(AdmodaReportingClient.java:193) at
com.ringringmedia.agency.internal.reporting.AdmodaReportingClientIntegrationTest.testDownloadSingleDaySpendByCampaign(AdmodaReportingClientIntegrationTest.java:39) 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:597) at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73) at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at
org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at
org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at
org.junit.runners.ParentRunner.run(ParentRunner.java:220) at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: com.gargoylesoftware.htmlunit.ScriptException:
ReferenceError: "Ajax" is not defined. at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:526) 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.callFunction(JavaScriptEngine.java:456) at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:893) at
com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:182) at
com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:201) at
com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:645) at
com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:887) 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.html.HtmlElement.fireEvent(HtmlElement.java:892) at
com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1248) at
com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212) at
com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179) at com.ringringmedia.agency.internal.reporting.AdmodaReportingClient.getSpendByCampaign(AdmodaReportingClient.java:135) ... 25 more Caused by:
net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError:
"Ajax" is not defined. at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3726) at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3704) at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3789) at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1826) at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.name(ScriptRuntime.java:1765) at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1767) 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:261) at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3130) at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at
com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:80) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:484) at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:449) at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:520) ... 40 more any help is appreciated. Thanks, Kumar. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
|
|
Re: Ajax callHi Kumar,
We'll probably need a minimal, isolated, independent test case in order to reproduce (and fix) this. Somewhere along the way it looks like our JS execution doesn't match browsers (assuming this test works correctly with a real browser). Please read http://htmlunit.sourceforge.net/submittingJSBugs.html for details on the sort of information we need. Take care, Daniel On Wed, Oct 28, 2009 at 11:28 AM, Kumararaja Gunasekaran <kumar@...> wrote:
-- Daniel Gredler http://daniel.gredler.net/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
|
|
Re: Ajax callHi Daniel, Thanks for the info. When I disabled the javascript - nothing happens after i click
the link - its showing the same page before clicking so i enable the
javascript and got the Ajax not defined error - stackTrace in my previous
email. In the Htmlunit website I can't be sure where to create a
testcase and submit them so I'm appeding in this mail as follows: Here is the test case details : public void testAjaxCall(){
HtmlPage currentPage = getWebClient().getPage("Url of
this particular page"); currentPage.getWebClient().setJavaScriptEnabled(true);
HtmlAnchor clickHereAnchor = currentPage
.getFirstAnchorByText("Click here"); currentPage.getWebClient().setJavaScriptTimeout("10000");//10
secs wait
currentPage = clickHereAnchor.click(); // this is where I'm getting the error } /* *
the following is the piece of code in html that i'm suppose to invoke
from the htmlunit class <a href="#"
onclick="new Ajax.Updater('info',
'http://www.somedomain.com/temp/', {asynchronous:true, evalScripts:true,
onLoaded:function(request){Element.hide('indicator')},
onLoading:function(request){Element.show('indicator')}}); return
false;">Click here</a> */ Thanks, Kumar. From: Daniel Gredler [mailto:djgredler@...]
Hi Kumar, On Wed, Oct 28, 2009 at 11:28 AM, Kumararaja Gunasekaran
<kumar@...>
wrote: Hi, I
have a link which actually calls an Ajax.Updater to a url (i can't access this
url directly though) and using the htmlunit anchor .click() doesn't help with
javascript disabled and when i enable the javascript - it throws an error
and following is the stackTrace: com.ringringmedia.agency.internal.reporting.AdNetworkReportingException:
Failed to get spend report page for
com.ringringmedia.agency.internal.domain.AdNetworkAdvertiserAccount@62610b[id=1,adNetwork=com.ringringmedia.agency.internal.domain.AdNetwork@15f157b[id=1,name=Test
AdNetwork,active=true,currencyCode=USD],advertiser=com.ringringmedia.agency.internal.domain.Advertiser@e7f6eb[id=1,name=Nokia,active=true],username=rrcfirst,password=conring123,info=Test
Account,reference=100001,active=true].
at
com.ringringmedia.agency.internal.reporting.AdmodaReportingClient.getSpendByCampaign(AdmodaReportingClient.java:193)
at
com.ringringmedia.agency.internal.reporting.AdmodaReportingClientIntegrationTest.testDownloadSingleDaySpendByCampaign(AdmodaReportingClientIntegrationTest.java:39)
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:597)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused
by: com.gargoylesoftware.htmlunit.ScriptException: ReferenceError:
"Ajax" is not defined.
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:526)
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.callFunction(JavaScriptEngine.java:456)
at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:893)
at
com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:182)
at
com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:201)
at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:645)
at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:887)
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.html.HtmlElement.fireEvent(HtmlElement.java:892)
at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1248)
at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212)
at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179)
at
com.ringringmedia.agency.internal.reporting.AdmodaReportingClient.getSpendByCampaign(AdmodaReportingClient.java:135)
... 25 more Caused
by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError:
"Ajax" is not defined.
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3726)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3704)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3789)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1826)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.name(ScriptRuntime.java:1765)
at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1767)
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:261)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3130)
at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:80)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:484)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:449)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:520)
... 40 more any
help is appreciated. Thanks, Kumar.
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
|
|
Re: Ajax callHi Kumar,
Please file the bug here, so that it doesn't fall between the cracks: https://sourceforge.net/tracker/?group_id=47038&atid=448266 Thanks! Daniel On Wed, Oct 28, 2009 at 12:51 PM, Kumararaja Gunasekaran <kumar@...> wrote:
-- Daniel Gredler http://daniel.gredler.net/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
|
|
Re: Ajax callDaneil, Here is the id : 2889479 Looking forward to get the answer. Thanks, Kumar. From: Daniel Gredler [mailto:djgredler@...]
Hi Kumar, On Wed, Oct 28, 2009 at 12:51 PM, Kumararaja Gunasekaran
<kumar@...>
wrote: Hi Daniel, Thanks for the info. When I disabled the javascript - nothing
happens after i click the link - its showing the same page before
clicking so i enable the javascript and got the Ajax not defined error -
stackTrace in my previous email. In the Htmlunit website I can't be sure
where to create a testcase and submit them so I'm appeding in this mail as
follows: Here is the test case details :
public void testAjaxCall(){
HtmlPage currentPage = getWebClient().getPage("Url of
this particular page");
currentPage.getWebClient().setJavaScriptEnabled(true);
HtmlAnchor clickHereAnchor = currentPage
.getFirstAnchorByText("Click here");
currentPage.getWebClient().setJavaScriptTimeout("10000");//10 secs
wait
currentPage = clickHereAnchor.click(); // this is where I'm getting the error
}
/*
* the following is the piece of code in html that i'm suppose to
invoke from the htmlunit class
<a href="#" onclick="new Ajax.Updater('info', 'http://www.somedomain.com/temp/',
{asynchronous:true, evalScripts:true,
onLoaded:function(request){Element.hide('indicator')},
onLoading:function(request){Element.show('indicator')}}); return
false;">Click here</a>
*/ Thanks, Kumar. From: Daniel Gredler [mailto:djgredler@...] Hi
Kumar, On
Wed, Oct 28, 2009 at 11:28 AM, Kumararaja Gunasekaran <kumar@...>
wrote: Hi, I
have a link which actually calls an Ajax.Updater to a url (i can't access this
url directly though) and using the htmlunit anchor .click() doesn't help with
javascript disabled and when i enable the javascript - it throws an error
and following is the stackTrace: com.ringringmedia.agency.internal.reporting.AdNetworkReportingException:
Failed to get spend report page for
com.ringringmedia.agency.internal.domain.AdNetworkAdvertiserAccount@62610b[id=1,adNetwork=com.ringringmedia.agency.internal.domain.AdNetwork@15f157b[id=1,name=Test
AdNetwork,active=true,currencyCode=USD],advertiser=com.ringringmedia.agency.internal.domain.Advertiser@e7f6eb[id=1,name=Nokia,active=true],username=rrcfirst,password=conring123,info=Test
Account,reference=100001,active=true].
at
com.ringringmedia.agency.internal.reporting.AdmodaReportingClient.getSpendByCampaign(AdmodaReportingClient.java:193)
at
com.ringringmedia.agency.internal.reporting.AdmodaReportingClientIntegrationTest.testDownloadSingleDaySpendByCampaign(AdmodaReportingClientIntegrationTest.java:39)
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:597)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused
by: com.gargoylesoftware.htmlunit.ScriptException: ReferenceError:
"Ajax" is not defined.
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:526)
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.callFunction(JavaScriptEngine.java:456)
at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:893)
at
com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:182)
at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:201)
at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:645)
at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:887)
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.html.HtmlElement.fireEvent(HtmlElement.java:892)
at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1248)
at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212)
at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179)
at
com.ringringmedia.agency.internal.reporting.AdmodaReportingClient.getSpendByCampaign(AdmodaReportingClient.java:135)
... 25 more Caused
by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError:
"Ajax" is not defined.
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3726)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3704)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3789)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1826)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.name(ScriptRuntime.java:1765)
at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1767)
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:261)
at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3130)
at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
at
com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:80)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:484)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:449)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:520)
... 40 more any
help is appreciated. Thanks, Kumar.
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
| Free embeddable forum powered by Nabble | Forum Help |