4

I cannot record CKeditor actions in Selenium IDE. I have added the following commands in my test case, but my problem is that on my page I have a button to save/send some data (from ckeditor too) and when Selenium clicks on the Save button, the written data in ckeditor disappears.

focus  |  class=cke_show_borders
typeKeys |  class=cke_show_borders  | testing content
runScript | CKEDITOR.instances["editor1"].setData('testContent');

Any help?

2
  • What is CKeditor?
    – dzieciou
    Apr 5, 2014 at 6:30
  • 1
    Why are you using Selenium IDE rather than Selenium Builder?
    – djangofan
    Apr 5, 2014 at 17:20

1 Answer 1

1

Try to add delay after SetData method, so the code will look like:

focus  |  class=cke_show_borders
typeKeys |  class=cke_show_borders  | testing content
runScript | CKEDITOR.instances["editor1"].setData('testContent');
pause 2000;

And then press 'Save' button.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.