user2181194
user2181194

Reputation: 93

Not able to type text in the WYSIWYG editor using selenium ide

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

Answers (1)

user3176473
user3176473

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

Related Questions