innerHTML
Get the innerHTML of the element.Discouraged in favor of locator.innerHTML().
Return value
innerText
Get the innerText of the element.Discouraged in favor of locator.innerText().
Return value
textContent
Get the textContent of the element.Discouraged in favor of locator.textContent().
Return value
getAttribute
Get an attribute value of the element.Discouraged in favor of locator.getAttribute().
Attribute name to get.
Return value
inputValue
Get the input value for input, textarea, or select elements.Throws for non-input elements. Discouraged in favor of locator.inputValue().
Return value
getProperty
Get a JSHandle for a property of this element.Note: Returns serialized handle reference. Full JSHandle support not yet available.
Return value
jsonValue
Get the JSON value of the element.Throws if the object cannot be serialized to JSON (e.g., DOM nodes).
Return value

