Missing setValue for div with contentEditable
See original GitHub issueThe code below doesn’t work because the #cv-paste element is a div with content editable browser. Is there a way set an innerHTML of an element and then be able to check it?
.setValue('#cv-paste', 'my cv text my cv text my cv text my cv text')
.assert.value("#cv-paste", "my cv text my cv text my cv text my cv text")
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
change contenteditable value with js - Stack Overflow
You can't put anything inside an input element. It's a self-closing tag. This is not valid markup and therefore the question is moot....
Read more >About the State Management of a Contenteditable Element in ...
What if we want to have the current value of the editable content in a state variable? Start by adding such a state...
Read more >Contenteditable attribute - HTML 5
The isContentEditable DOM attribute, on getting, must return true if the element is editable, and false otherwise. If an element is editable and...
Read more >contenteditable - HTML: HyperText Markup Language | MDN
Chrome Edge
contenteditable Full support. ChromeYes. Toggle history Full suppo...
contenteditable="caret". Experimental Full support. ChromeYes. Toggle history Full suppo...
contenteditable="events". Experimental Full support. ChromeYes. Toggle history...
Read more >Easy JavaScript/jQuery Input Mask Plugin - inputmask
Call the plugin on the target element and done. ... Fixed "[object Object]" value after $element.inputmask('setvalue', '') call; Fixed: Lost ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@andre0799, I think a proper way to accomplish this through a combination of
clickandkeyscommands.clickto make element active and editable andkeysto type some text.keysaccepts a sequence of key strokes, sosplitwill help with this.in case anyone stumbles here because they’re trying to set content inside an tinymce editor from nightwatch
see: https://stackoverflow.com/a/27362212/2445763