3 Replies Latest reply on Jun 14, 2007 6:53 AM by Steve Button-Oracle

    clicking a button should open a new window

    582891
      When I click a button element which opens a pop up window in the browser give me following javascript exception from DebugCommon10_1_3_2_0.js when I click the buttonthrough a htmlunit test. I have set my WebClient to default.

      Exception class=[org.mozilla.javascript.WrappedException]
      com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function setCapture. (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#3614) (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#4561)
      at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:322)
      at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:736)
      at com.gargoylesoftware.htmlunit.html.HtmlPage.runEventHandler(HtmlPage.java:1489)
      at com.gargoylesoftware.htmlunit.html.HtmlPage.runEventHandler(HtmlPage.java:1465)
      at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:103)
      at lk.informatics.cs.testcases.login.agreementmanagement.AddNewPartner.testSLNO12(AddNewPartner.java:329)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function setCapture. (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#3614) (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#4561)
      at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1693)
      at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
      at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:471)
      at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3085)
      at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)
      at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)
      at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
      at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:151)
      at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
      at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159)
      at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:95)
      at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:363)
      at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:318)