Yes, it's probably a good idea to enter an issue for this in JIRA. Matt
On 11/30/07, René Günther <[EMAIL PROTECTED]> wrote: > I got the same error. Maybe this should be changed in the tutorial? > > -----Ursprüngliche Nachricht----- > Von: tnsilver [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 1. Oktober 2007 22:48 > An: users@appfuse.dev.java.net > Betreff: Re: [appfuse-user] canoo web test failed with "Cannot find function > findFirstElement" > > > I had the same thing for a very silly reason. I followed the tutorials and > placed the <body id="personForm"/> > in my personForm.jsp before the <head> section. When I noticed this, I moved > it to right after the closing </head>. Still, the same problem. Then I > realized that the 'personForm' is not a good identifier because the form it > self is named the same so I figured this messes up with the function so I > just changed it to a unique id as such: <body id="personFormBody"/> and my > problem was solved. > > The error is really confusing and misleading. In my case it was just a basic > html thing. Check, perhaps the reason in your case is similar... > > > > > Den Orlov wrote: > > > > Following http://appfuse.org/display/APF/Using+JSF tutorial I've added > > Canoo WebTest. And while executing > > > > mvn -e integration-test -Dtest=SavePerson -Dsurefire.useFile=false > > -Duser.language=en > > > > get this error: > > > > [INFO] Error executing ant tasks > > > > Embedded error: The following error occurred while executing this line: > > > C:\Projects\appfuse\appfuse-2.0\adplatform\src\test\resources\web-tests.xml: > 251: > > Canoo Webtest: R_1454. > > Test failed. > > Test step steps > > > (C:\Projects\appfuse\appfuse-2.0\adplatform\src\test\resources\web-tests.xml > :253: > > ) null failed with message "Step[clicklink (8/14)]: Script error loading > > page executing webtest at: clicklink Wrapped > > com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find > > function findFirstElement. > > (http://localhost:8081/adplatform-1.0-SNAPSHOT/scripts/prototype.js#1956) > > (Embedded script in > > http://localhost:8081/adplatform-1.0-SNAPSHOT/persons.html#71) > > Source code: > > function () { > > [native code, arity=0] > > } > > " > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Trace > > org.apache.maven.lifecycle.LifecycleExecutionException: Error executing > > ant tasks > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife > cycleExecutor.java:559) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle > (DefaultLifecycleExecutor.java:475) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec > ycleExecutor.java:454) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail > ures(DefaultLifecycleExecutor.java:306) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa > ultLifecycleExecutor.java:273) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle > Executor.java:140) > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > > 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 > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing > > ant tasks > > at > > > org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo. > java:114) > > at > org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83) > > at > > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage > r.java:412) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife > cycleExecutor.java:534) > > ... 16 more > > Caused by: The following error occurred while executing this line: > > > C:\Projects\appfuse\appfuse-2.0\adplatform\src\test\resources\web-tests.xml: > 251: > > Canoo Webtest: R_1454. > > Test failed. > > Test step steps > > > (C:\Projects\appfuse\appfuse-2.0\adplatform\src\test\resources\web-tests.xml > :253: > > ) null failed with message "Step[clicklink (8/14)]: Script error loading > > page executing webtest at: clicklink Wrapped > > com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find > > function findFirstElement. > > (http://localhost:8081/adplatform-1.0-SNAPSHOT/scripts/prototype.js#1956) > > (Embedded script in > > http://localhost:8081/adplatform-1.0-SNAPSHOT/persons.html#71) > > Source code: > > function () { > > [native code, arity=0] > > } > > " > > at > > > org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper > .java:539) > > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384) > > at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > > at org.apache.tools.ant.Task.perform(Task.java:364) > > at org.apache.tools.ant.Target.execute(Target.java:341) > > at > > > org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo. > java:108) > > ... 19 more > > Caused by: > > > C:\Projects\appfuse\appfuse-2.0\adplatform\src\test\resources\web-tests.xml: > 251: > > Canoo Webtest: R_1454. > > Test failed. > > Test step steps > > > (C:\Projects\appfuse\appfuse-2.0\adplatform\src\test\resources\web-tests.xml > :253: > > ) null failed with message "Step[clicklink (8/14)]: Script error loading > > page executing webtest at: clicklink Wrapped > > com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find > > function findFirstElement. > > (http://localhost:8081/adplatform-1.0-SNAPSHOT/scripts/prototype.js#1956) > > (Embedded script in > > http://localhost:8081/adplatform-1.0-SNAPSHOT/persons.html#71) > > Source code: > > function () { > > [native code, arity=0] > > } > > " > > at > > com.canoo.webtest.ant.WebtestTask.stopBuildIfNeeded(WebtestTask.java:228) > > at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:175) > > at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > > at org.apache.tools.ant.Task.perform(Task.java:364) > > at org.apache.tools.ant.Target.execute(Target.java:341) > > at org.apache.tools.ant.Target.performTasks(Target.java:369) > > at > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > > at > > > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckEx > ecutor.java:37) > > at org.apache.tools.ant.Project.executeTargets(Project.java:1068) > > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382) > > ... 23 more > > > > What's could be the reason of error? Most probably that <clicklink > > label="1"/> test command don't work. But how to fix this? > > > > Thanks in advance, > > Den Orlov > > > > -- > View this message in context: > http://www.nabble.com/canoo-web-test-failed-with-%22Cannot-find-function-fin > dFirstElement%22-tf3570878s2369.html#a12987555 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >