Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

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?

share|improve this question
    
What is CKeditor? –  dzieciou Apr 5 at 6:30
1  
Why are you using Selenium IDE rather than Selenium Builder? –  djangofan Apr 5 at 17:20

1 Answer 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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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