I'm trying to add text to TinyMCE using SELENIUM. I've been able to add text using this code:
$('iframe').last().contents().find('body').text('401c484b-68e4-4bf2-a13d-2a564acddc04');
The TinyMCE editor is displaying the GUID. However, when Selenium click the submit button, I'm getting an error: Please, enter a text.
.
I've noticed that, while Selenium is running, I just need to click (manually) on the TinyMCE then, when the update button is clicked, the text is returned.
So how do I click the TinyMCE using javascript or jQuery?