Selenium can't record type action on CK editor's textarea, because
actually the textarea has been transfered to an iframe, not textarea,
so what you really do when typing is type words into that iframe ( by
javascript ). So in order to solve this problem, we have to call
CKEditor's code to setData into that textarea.
My solution is to write a function into 'user-extension.js', that will
become a command which will apear in your ide command dropdownlist.
Below is my code, hope it will help ~
Selenium.prototype.doInsertCKEditor = function(locator,word)
{
this.doWaitForCondition("var x =
Selenium.browserbot.findElementOrNull('//td[@id=\"cke_contents_form
\"]');x != null;", "50000");
this.doRunScript("CKEDITOR.instances['"+locator+"'].setData('"+word
+"');");
}
The locator variable is your textarea's name, and the word variable is
the words you want to input to that textarea.
Command 'insertCKEditor' will apear in Selenium IDE, you just need to
call it and pass the two variable's value, and problem solved !
Don't forget to include 'user-extension.js' and restart your Selenium
IDE.
ptm