18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Is it possible to access text within CKEditor?
I read all the topics on the forum but did not find a solution to test CKEditor.
Sahi 3.5 (19/07/11) just does not record anything, nor Ctrl+Hover shows nothing inside the editor.
To test this, for instance, in the page : http://ckeditor.com/demo
you may try to change the title from "Little Red Riding Hood" to "Little Green Riding Hood".
How do I have to write the sahi script to acheive this ?
I would like to be able to test forms which have several CKeditors areas.
From Firebug, the code for each one appears like this :
Sahi 3.5 (19/07/11) just does not record anything, nor Ctrl+Hover shows nothing inside the editor.
To test this, for instance, in the page : http://ckeditor.com/demo
you may try to change the title from "Little Red Riding Hood" to "Little Green Riding Hood".
How do I have to write the sahi script to acheive this ?
I would like to be able to test forms which have several CKeditors areas.
From Firebug, the code for each one appears like this :
<iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="" style="width:100%;height:100%">
<html lang="en" dir="ltr"><head>
<base data-cke-temp="1" href="http://dev-vaio/portail/">
<style data-cke-temp="1" type="text/css">
...
</style>
</head>
<body contenteditable="true" spellcheck="false" class="cke_show_borders">
<p>My text here !<br type="_moz"></p>
</body>
</html>
</iframe>
I would like to automate the writing of "My text here !" in a blank area. This discussion has been closed.
Comments
Iframes in design mode (contentEditable true) are considered Rich Text Editors (RTE) by Sahi.
You need to use the _rte, _rteWrite, _rteHTML, _rteText apis to work on them.
Regards,
Narayan
Thank you very much.