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.
Error: Permission denied to access property 'document' with CKEditor
Hi narayan,
I followed your advice in this thread http://sahi.co.in/forums/viewtopic.php?id=2857
and it has been working for a while.
But now, I get an error and don't see where it comes from.
1°) The line
2°) The line
Both cases, give a --Stopped Playback: FAILURE--
Could you put me on the right track ?
I followed your advice in this thread http://sahi.co.in/forums/viewtopic.php?id=2857
and it has been working for a while.
But now, I get an error and don't see where it comes from.
1°) The line
var $content = _rteHTML(_rte(0));
raises in the logs
_sahi.setServerVar('___lastValue___1317119083422', _rteHTML(_rte(0)));
Error: Permission denied to access property 'document'
([object HTMLIFrameElement])@http://dev-vaio/_s_/spr/concat.js:3740
@http://dev-vaio/_s_/spr/concat.js:3016
()@http://dev-vaio/_s_/spr/concat.js:3016
@http://dev-vaio/_s_/spr/concat.js:2822
2°) The line
_rteWrite(_rte(0), "Activity");
raises in the logs
_rteWrite(_rte(0), "Activity");
Error: Permission denied to access property 'document'
([object HTMLIFrameElement],"Activity")@http://dev-vaio/_s_/spr/concat.js:3737
@http://dev-vaio/_s_/spr/concat.js:3016
()@http://dev-vaio/_s_/spr/concat.js:3016
@http://dev-vaio/_s_/spr/concat.js:2822
Both cases, give a --Stopped Playback: FAILURE--
Could you put me on the right track ?
Comments
Ctrl+Hover on _rte(0) to find what exactly you wanted. There is a possibility that _rte(0) is changed.And replace the same with the above code.
Check if this solves your issue.
Regards
Sumitra
Unfortunately, when I Ctrl+Hoover over the RTE CkEditor, nothing appears in the controler to tell me the name. In fact, it stops at the border of the iFrame inside which CKEditor places the text.
As a work around, I changed to feeding directly the original textarea that CKEditor hide to install the CKEditor in place.
This works well on my local computer (W7 XAMPP)
But not on the production site : there, neither _rteWrite(_rte(7),.. neither _rteWrite(_rte(7), works.
Do you have a solution to have the textarea or the CKEditor to be written by sahi ?
It is possible that the CKEditor is now locatede in an IFrame from different sub-domain.
To make Sahi work, you need to add the URL pattern and base domain to sahi/userdata/config/domainfix.txt
Eg:
*.facebook.com facebook.com
and restart the sahi to take effect.
If still the problem exist,let us know.
Regards,
Theeran.
Actually, the DOM does not show any other site : The problem is that Sahi does not see the editor, neither by Ctrl+Hoover, neither by _rte(0). So it is not possible to put any text inside.