cypress: Can't access CKeditor inside Iframe
I won’t be able to access the Ckeditor inside Iframe.
I have tried many things but none of them worked.
This is my from which I’m trying to access it: -
cy.get(".cke_wysiwyg_frame").then(function($iframe) {
const $body = $iframe.contents().find("body");
console.log($body);
cy.wrap($body[0]).type("<p>HTML body</p>");
This is above error message that I’m getting.
Please look into it @jennifer-shehane
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (5 by maintainers)
For CKEditor4 this works:
cy.get('iframe').then(($iframe) => { const $body = $iframe.contents().find('body') cy.wrap($body).type('sample content.') })