Ahmed,
Sorry for the confusion; I didn't realize I was running on older version of our app. Anyway, I am getting the same error using TinyMCE 3.2.0.2 at line 7881 of tiny_mcs_src.js:

TypeError: Cannot read property "body" from null (http://localhost:8080/javascript/tiny_mce-3.2.0.2/tiny_mce.js#7881 )

Thanks!
Michael


On Oct 27, 2008, at 1:51 PM, Ahmed Ashour wrote:

Dear Michael,

The trace URL you provide has still 3.1.0.1 (not latest).

>>TypeError: Cannot read property "body" from null

This means we have something like "x.body", and x is incorrectly evaluated to null.

Can you use 'tiny_mce_src.js' instead of 'tiny_mce.js'? and provide the line in which body cannot be read from 'null'?

Ahmed
From: Michael Westphal <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, October 27, 2008 8:46:01 PM
Subject: Re: [Webtest] Controlling TinyMCE with WebTest

Hi Ahmed,
I am already using the latest TinyMCE release (3.2.0.2) and the latest nightly of WebTest (R1723). Here is a more complete snippet of my test:

<webtest>
   &config;
   <steps>
      &login;
      <invoke url="/entity/start.act" />

      <setInputField htmlId="wysiwyg_editor" value="foo" />

      <clickButton xpath="//[EMAIL PROTECTED]'formsubmit']" />
   </steps>
</webtest>

and a portion of the stacktrace:
[clickButton] DEBUG (com.canoo.webtest.steps.Step) - Handling exception com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "body" from null (http://localhost:8080/javascript/tiny_mce-3.1.0.1/tiny_mce.js#1 )
[clickButton] ======= EXCEPTION START ========
[clickButton] EcmaError: lineNumber=[1] column=[0] lineSource=[function () {] name=[TypeError] sourceName=[http://localhost:8080/javascript/tiny_mce-3.1.0.1/tiny_mce.js ] message=[TypeError: Cannot read property "body" from null (http://localhost:8080/javascript/tiny_mce-3.1.0.1/tiny_mce.js#1 )]


A similar test functions properly on pages that do not utilize a TinyMCE editor.

Our app sits behind a firewall and it would take a bit of time to get a public facing instance up and running. I can do this if we cannot reproduce this issue elsewhere.

Thank you!
Michael



Reply via email to