innerHTML
Returns the innerHTML of the element. Upstream docsReturn value
innerText
Returns the innerText of the element.For assertions, prefer expect(locator).toHaveText() with useInnerText option.
Return value
textContent
Returns the textContent of the element.For assertions, prefer expect(locator).toHaveText().
Return value
allInnerTexts
Returns an array of innerText values for all matching elements.For assertions, prefer expect(locator).toHaveText() with useInnerText option.
Return value
allTextContents
Returns an array of textContent values for all matching elements.For assertions, prefer expect(locator).toHaveText().
Return value
getAttribute
Returns the attribute value of the element. Upstream docsAttribute name
Return value
inputValue
Returns the input value for <input>, <textarea>, or <select> elements. Upstream docsReturn value

