Reputation: 93
i am facing a problem to type text in the wysiwyg editor. I have tried using the following code
storeEval
this.browserbot.findElement("class=wysihtml5-sandbox";).contentWindow.document.body.innerHTML='test text';
MyVar
but its not working for me and one thing i would like to tell u that with firebug javascript console i am able to insert the text using the below javascript
tinyMCE.get("Id of the editor").setContent("Test TExt")
but this command is not working in selenium ide
Do you have any solution for this?
Upvotes: 0
Views: 1004
Reputation: 51
I've solution of your question. I'm also using this command.
<tr>
<td>runScript</td>
<td>tinyMCE.activeEditor.setContent('Enter your text here')</td>
<td></td>
</tr>
Upvotes: 1