Hi, Michael: can you try with the latest webtest build?
John: which version of WebTest do you use? Marc. Michael Habbert wrote: > > Hi Marc, > > if I switch to webtest 2.1 i get the same error: > > Michael Habbert > > -------------------- > [java] [java] [clickButton] INFO (com.canoo.webtest.steps.Step) - > Message was: Step[clickButton "Click the submit button" (8/71)]: Script > error loading page executing webtest at: clickButton TypeError: Cannot > find function attachEvent. > (http://bendera:8888/adds/convertCurlyQuotes.js#49) > [java] [java] [clickButton] Source code: > [java] [java] [clickButton] function init() { > [java] [java] [clickButton] var obj = > document.getElementsByTagName("form"); > [java] [java] [clickButton] if (window.addEventListener) { > [java] [java] [clickButton] > window.addEventListener("submit", windowEvent, true); > [java] [java] [clickButton] } else { > [java] [java] [clickButton] if (window.attachEvent) { > [java] [java] [clickButton] for (var i = obj.length - > 1; i >= 0; i--) { > [java] [java] [clickButton] var elmForm = obj[i]; > [java] [java] [clickButton] > elmForm.attachEvent("onsubmit", windowEvent); > [java] [java] [clickButton] } > [java] [java] [clickButton] } > [java] [java] [clickButton] } > [java] [java] [clickButton] } > [java] [java] INFO (com.canoo.webtest.ant.WebtestTask) - Finished > executing webtest "chewi create auftragnehmer" > (/usr/local/projekte/enbw/chewi/test/webtest/imports/createContractor.xml:13: > ) > [java] [java] INFO (com.canoo.webtest.ant.WebtestTask) - Test > report successfully created. > > > John Gluck wrote: >> Thanks so much for your response Marc, >> >> The code is Adobe's Spry framework, which I am not comfortable with >> passing around (and is too big for this forum). You can download it >> from here though I am using version 1.3. 1.4 is on the adobe site. >> >> http://labs.adobe.com/technologies/spry/ >> >> However, I believe the line of code causing Spry to fail is: >> >> window.addEventListener('load', handler, false); >> >> The page in question is attached. > [...] > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > > -- View this message in context: http://www.nabble.com/addEventListener-is-not-a-function-tf2440695.html#a8556080 Sent from the WebTest mailing list archive at Nabble.com. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

