hyTags
HomeHome DocumentationDocumentation

selection-set-text

Sets the text content of the selected element.
Parameter
Type
Description
text
String
Text content to set
return
void
Void
Test Case:Set text content
    <div></div>
    
    <selection-set-text text="New Text">
    <selection-get-text>
    <assert-equal value="New Text" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed