Queries a Node for a list of states.
{Node} The node to query, which will be transformed into the nearest element to query the state.
{ElementState[]} The states to query.
A Promise that resolves to an object with the status of the query.
Queries a Node for a single state.
{Node} The node to query, which will be transformed into the nearest element to query the state.
{ElementStateWithoutStable} The state to query.
A Promise that resolves to an object with the status of the query.
Checks if an element is ready for an interaction.
{Element} The element to check.
{ElementInteractionType} The type of interaction to check.
OptionalhitPointOffset: { x: number; y: number }{?{x: number, y: number}} The offset of the hit point from the center of the element.
A Promise that resolves to an object with the status of the check.
Waits for an element to be ready for an interaction.
{Element} The element to wait for.
{ElementInteractionType} The type of interaction to wait for.
{number} The timeout in milliseconds.
OptionalhitPointOffset: { x: number; y: number }{?{x: number, y: number}} The offset of the hit point from the center of the element.
A Promise that resolves to the hit point of the interaction.
Gets the bounding rectangle of an element in the view port.
{Element}The element to get the bounding rectangle of.
A Promise that resolves to the bounding rectangle of the element in the view port, or undefined if the element is not in the view port.
Checks if an element is in the view port.
{Element}The element to check.
A Promise that resolves to a boolean indicating if the element is in the view port.
Checks if an element is visible.
The element to check.
A boolean indicating if the element is visible.
Checks if an element is disabled.
The element to check.
A boolean indicating if the element is disabled.
Checks if an element is read only.
The element to check.
A boolean indicating if the element is read only, or 'error' if the element is not an ,
Checks if an element is scrollable into view.
The element to check.
A boolean indicating if the element is scrollable into view.
Gets a click point of an element.
The element to get the click point of.
Optionaloffset: { x: number; y: number }The offset of the click point from the center of the element.
A Promise that resolves to an object with information about the click point.
Inspector for element states and interactions.