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.
Rich Text Editor (TinyMice)
Hi Narayan,
I wanted to automate the functionality which involves the Rich Text Editor(Tinymice) to enter
text and follow the next text boxes.I tried the following code to set the data.
$text= 'testing';
_setValue(_byId("article_body_ifr").contentWindow.document.body.innerHTML += $text);
But the Text "Testing" repeats for 6 time (some times less) and will not navigate to next fileds.
I know the problem, Currently script execution focus on the innerHTML (Tinymice) which is not allowing to come back to main HTML page to identify the elements.
Please let me know how should i get out of this probelm.
REF: http://tinymce.moxiecode.com/examples/full.php
I wanted to automate the functionality which involves the Rich Text Editor(Tinymice) to enter
text and follow the next text boxes.I tried the following code to set the data.
$text= 'testing';
_setValue(_byId("article_body_ifr").contentWindow.document.body.innerHTML += $text);
But the Text "Testing" repeats for 6 time (some times less) and will not navigate to next fileds.
I know the problem, Currently script execution focus on the innerHTML (Tinymice) which is not allowing to come back to main HTML page to identify the elements.
Please let me know how should i get out of this probelm.
REF: http://tinymce.moxiecode.com/examples/full.php
This discussion has been closed.
Comments
Please find the logs which is created after execution of the above line of code.
_setValue(_byId("article_body_ifr").contentWindow.document.body.innerHTML += "testing");
TypeError: target.ownerDocument is undefined
("
http://testing.com/_s_/spr/concat.js:961
("
http://testing.com/_s_/spr/concat.js:900
("
http://testing.com/_s_/spr/concat.js:887
http://testing.com/_s_/spr/concat.js:2762
http://testing.com/_s_/spr/concat.js:2762
http://testing.com/_s_/spr/concat.js:2578
You need to use _call instead of _setValue
You could also do
_rteWrite(_rte("article_body_ifr"), $test);
Regards,
Narayan
Both option works great.