Hi,
The javascript  function causing the problem is:
---
function getTarget(evt) {
    if(evt.srcElement) 
        return evt.srcElement;
    else 
        return evt.target;
}
---
I think this is meant to discriminate between the browsers. I have to check it 
out.

Mit freundlichen Grüßen
------------------------------------------------------------------------
Michael Habbert

Senior Developer
Netpioneer GmbH, Beiertheimer Allee 18, D-76137 Karlsruhe

Tel: 0721 / 920 60 21
Fax: 0721 / 920 60 30
E-Mail: [EMAIL PROTECTED]
www: http://www.netpioneer.de

[...]
> I did compile the actual source code and started our test-suite.
> 
> The error message changed from webtest 2.1 (the old 
> version;-) where I got: "Cannot find function attachEvent").
> --------------
>      [java]      [java] [clickButton]  INFO 
> (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: 
> development.
>      [java]      [java] [clickButton]  INFO 
> (com.canoo.webtest.steps.Step) - Exception thrown from this 
> class: com.canoo.webtest.engine.StepFailedException
>      [java]      [java] [clickButton]  INFO 
> (com.canoo.webtest.steps.Step) - Message was: 
> Step[clickButton "save contractor" (16/71)]: Script error 
> loading page execut
> ing webtest at: clickButton TypeError: Cannot read property 
> "srcElement" from undefined 
> (http://bendera:8888/adds/convertCurlyQuotes.js#29)
>      [java]      [java] [clickButton] Source code:
> 
>      [java]      [java] [clickButton]   function windowEvent(event) {
>      [java]      [java] [clickButton]       var elmForm = 
> getTarget(event);
>      [java]      [java] [clickButton]       var arTextareas = 
> elmForm.getElementsByTagName("textarea");
>      [java]      [java] [clickButton]       for (var i = 
> arTextareas.length - 1; i >= 0; i--) {
>      [java]      [java] [clickButton]           var 
> elmTextarea = arTextareas[i];
>      [java]      [java] [clickButton]           
> elmTextarea.value = filterChars(elmTextarea.value);
>      [java]      [java] [clickButton]       }
>      [java]      [java] [clickButton]   }
> 
>      [java]      [java]  INFO (com.canoo.webtest.steps.Step) 
> - Running with: Canoo Webtest: development.
>      [java]      [java]  INFO (com.canoo.webtest.steps.Step) 
> - Exception thrown from this class: 
> org.apache.tools.ant.BuildException
>      [java]      [java]  INFO (com.canoo.webtest.steps.Step) 
> - Message was: com.canoo.webtest.engine.StepFailedException: 
> Step[clickButton "save contractor" (16/71)]: 
> Script error loading page executing webtest at: clickButton 
> TypeError: Cannot read property "srcElement" from undefined 
> (http://bendera:8888/adds/convertCurlyQuotes.js
> #29)
> -----------
[...]
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to