Skip to main content

QuerySelectorResponse

The response returned after querying the page for a selector

type QuerySelectorResponse {
childElementCount: Float
className: String
id: String
innerHTML: String
innerText: String
localName: String
outerHTML: String
}

Fields

QuerySelectorResponse.childElementCount ● Float scalar

The Element.childElementCount read-only property returns the number of child elements of this element

QuerySelectorResponse.className ● String scalar

The className property of the Element interface gets and sets the value of the class attribute of the specified element

QuerySelectorResponse.id ● String scalar

The id property of the Element interface represents the element's identifier, reflecting the id global attribute

QuerySelectorResponse.innerHTML ● String scalar

The Element property innerHTML gets the HTML or XML markup contained within the element

QuerySelectorResponse.innerText ● String scalar

The Element property innerText gets the text contained within the element

QuerySelectorResponse.localName ● String scalar

The Element.localName read-only property returns the local part of the qualified name of an element

QuerySelectorResponse.outerHTML ● String scalar

The 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

Returned By

querySelector mutation ● querySelectorAll mutation