... or try to use webtest-recorder to get webtest-steps for filling
TinyMCE  field:

 

http://webtestrecorder.canoo.com/

 

J

Roman

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Westphal
Sent: Monday, October 27, 2008 4:03 PM
To: [email protected]
Subject: [Webtest] Controlling TinyMCE with WebTest

 

Greetings All,

We use the TinyMCE rich-text editor extensively in our Web Application
and I am having trouble controlling TinyMCE using WebTest. I simply need
to add text into the editor.

 

I tried using the setInputField step on the textarea that TinyMCE uses,
with no luck.

 

Here's my step code:

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

 

Which results in the following error on test execution:

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

 

Interestingly, the error is not thrown on the setInputField step, rather
the clickButton step that submits the form.

 

Has anyone successfully used WebTest with pages using a TinyMCE editor,
and if so could you provide me some direction?

 

Thank You!

Michael

Reply via email to