For AI agents: a documentation index is available at /llms.txt
Skip to main content

QuerySelectorResponse

The response returned after querying the page for a selector

Properties

PropertyTypeDescription
childElementCountnumber | nullThe Element.childElementCount read-only property returns the number of child elements of this element
classNamestring | nullThe className property of the Element interface gets and sets the value of the class attribute of the specified element
idstring | nullThe id property of the Element interface represents the element's identifier, reflecting the id global attribute
innerHTMLstring | nullThe Element property innerHTML gets the HTML or XML markup contained within the element
innerTextstring | nullThe Element property innerText gets the text contained within the element
localNamestring | nullThe Element.localName read-only property returns the local part of the qualified name of an element
outerHTMLstring | nullThe outerHTML attribute of the Element DOM interface gets the serialized HTML fragment describing the element including its descendants. It can also be set to replace the element with nodes parsed from the given string