From: Ronald B. <rb...@rb...> - 2015-12-02 18:57:46
|
Please post the whole exception RBRi On Wed, 2 Dec 2015 13:43:05 -0500 Christoff, Kyle wrote: > >Ahmed, > >I updated my code with setThrowExceptionOnScriptError(true). When I re-run >it, after clicking on the "Login" button, I get this exception. Should I >conclude that htmlunit cannot be used to automate this internal cloudera >installation web site? If so, could you tell me the reason? > >Kyle > >javascript enabled = true >---------- newpage after loading login page ---------- >Login - Cloudera Manager > > Cloudera Manager >Community Forums >Help > > > >Login >Username: Password: unchecked Remember me on this computer. Login >username=[HtmlTextInput[<input type="text" class="input-large" >id="username" name="j_username" autofocus="">]] >password=[HtmlPasswordInput[<input type="password" class="input-large" >id="password" name="j_password">]] >login=[HtmlButton[<button type="submit" class="btn btn-primary btn-large >btn-block" name="submit">]] >com.gargoylesoftware.htmlunit.ScriptException: Error: Mismatched anonymous >define() module: function (e, t, n) { > return e.extend({init: function (e) { > var t = this; > t.options = $.extend({}, {container: ".upload-form", iframeElement: >"#hiddenIframeForUpload"}, e), t.$container = $(t.options.container), >t.getFileInput().change(function (e) { > var n = t.getFileInput().val().replace("C:\\fakepath\\", ""); > t.getFileNameInput().val(n), t.enableDisableUploadButton(); > }), t.getFileNameIcon().click(function (e) { > t.showFileSelection(); > }), t.getFileNameInput().click(function (e) { > t.showFileSelection(); > }), t.getUploadButton().click(function (e) { > t.upload(); > }), t.enableDisableUploadButton(); > }, showFileSelection: function () { > this.getFileInput().trigger("click"); > }, getFileInput: function () { > return this.$container.find("input[type=file]"); > }, getFileNameIcon: function () { > return this.$container.find(".icon-file"); > }, getFileNameInput: function () { > return this.$container.find("input[type=text]"); > }, getUploadButton: function () { > return this.$container.find("button.upload-btn"); > }, enableDisableUploadButton: function () { > var e = this.getFileInput().val(); > e === "" ? this.getUploadButton().attr("disabled", "disabled") : >this.getUploadButton().removeAttr("disabled"); > }, upload: function () { > this.$container.submit(), this.clearPostOutput(), >this.checkPostOutput(); > }, getSuccessContainer: function () { > return this.$container.find(".success"); > }, getErrorContainer: function () { > return this.$container.find(".error"); > }, getIFrameContent: function () { > return $(this.options.iframeElement).contents(); > }, clearPostOutput: function () { > var e = this.getIFrameContent(); > $.publish("fileUploaded", [!1]), >e.find("input[name=error]").val(""), e.find("input[name=message]").val(""); > }, checkPostOutput: function () { > var e = this, r = e.options, i = e.getIFrameContent(), s = >i.find("input[name=error]"), o = i.find("input[name=message]"); > if (s.length > 0 && s.val()) { > var u = s.val(); > u === "false" ? ($.publish("fileUploaded", [!0]), >e.getSuccessContainer().show(), e.getErrorContainer().hide()) : >(e.getSuccessContainer().hide(), >e.getErrorContainer().html(o.val()).show()); > } else { > t.getTestMode() || n.delay(n.bind(e.checkPostOutput, e), 1000); > } > }}); >} >http://requirejs.org/docs/errors.html#mismatch ( >http://localhost:7180/static/ext/require.js#141) > > > >----< Inline text [text-plain-04.txt] >------------------ > >----------------------------------------------------------------------- ------- >Go from Idea to Many App Stores Faster with Intel(R) XDK >Give your users amazing mobile app experiences with Intel(R) XDK. >Use one codebase in this all-in-one HTML5 development environment. >Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. >http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > > >----< Inline text [text-plain-05.txt] >------------------ > >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |