Skip to content

Unable to enter text into CKEditor 5 using global instance in Selenium IDEm IDE #1899

@codedecode-cmky

Description

@codedecode-cmky

I am using CKEditor 5 in my project and automating the application with Selenium IDE.
To facilitate automated text input, I have created a global CKEditor instance:
window.theEditor = editor;
In the browser console, I can successfully set the editor content using:
window.theEditor.setData('hi');
This correctly updates the CKEditor content.
However, when I attempt to execute the same JavaScript command via Selenium IDE using execute script, it fails with an error indicating that theEditor is not defined.
This happens even though the instance is explicitly attached to window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions