My naive understanding is that the errors you see on the console here are not necessarily a problem: Looking at line 1927 of prototype.js it seems that it is using a try/catch mechanism to determine the features supported by the javascript instance and in the case that the 'extended element create' feature is not supported you see this text. It is misleading doubtless, but you may find that the page is created as expected.
On Sunday, July 20, 2014 12:37 PM, bigtester prot <[email protected]> wrote: I got exact same error when I tried to build jenkins testng-plugin-plugin. Anybody knows what's wrong here? peidong On Thursday, April 17, 2014 9:30:42 AM UTC-4, pallen wrote: Hi Guys, > > >I'm trying to write a unit test for the SCM entries in the project >configuration page. > >@Rule >>public JenkinsRule jenkins = new JenkinsRule(); >> >>@Test >>public void testManualWorkspaceImpl() throws Exception { >> FreeStyleProject project = jenkins. createFreeStyleProject(" Manual"); >> PerforceScm scm = new PerforceScm(...stuff...); >> project.setScm(scm); >> project.save(); >> >> HtmlPage page = jenkins.createWebClient(). getPage(project, "configure"); >> System.out.println(page. asText()); >>} > > >This errors with the following: > >SEVERE: Unexpected exception occurred while parsing HTML snippet >>Apr 17, 2014 11:57:30 AM com.gargoylesoftware.htmlunit. >>javascript.StrictErrorReporter runtimeError >>SEVERE: runtimeError: message=[Unexpected exception occurred while parsing >>HTML snippet: input name="x"] sourceName=[http://localhost: >>51496/jenkins/static/fd1dcdac/ scripts/prototype.js] line=[1927] >>lineSource=[null] lineOffset=[0] > > >I have tried a variety of different 'plugin' versions, but currently using >1.532.3. > > >Sorry if this is the wrong place to post, but only signed up today. > > >Kind regards, >Paul -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
