editContent - Selenium IDE
editContent (target, text in HTML format) - Selenium IDE command
The editContent command supports editing content-editable elements, e.g., rich text editors. After a user edits the content of a content-editable element while recording, a corresponding editContent command will be automatically generated, which is triggered by detecting the focus removal of the element. The idea for this command was invented by the Sideex team from Taiwan, and the Kantu IDE supports it now as well.
The editContent command is sending text to rich-text edit controls like TinyMCE, QuillJS or RichTextEditor. For regular input boxes the well-known type command is used for form-filling
editContent Example
Note that editContent supports HTML tags, in this example h1 is used.
Command | Target | Pattern/Text |
---|---|---|
open | https://quilljs.com/ | |
editContent | //*[@id="snow-container"]/div[2]/div[1] | Ui.Vision RPA Test Automation |
Works in
Ui.Vision RPA for Chrome Selenium IDE, Ui.Vision RPA for Firefox Selenium IDE, Firefox IDE Classic
Related Demo Macros
Demo-StoreEval
See also
storeText, Web Automation Extension User Manual, Selenium IDE commands, Classic Firefox Selenium IDE.
Anything wrong or missing on this page? Suggestions?
...then please contact us.