class TestOutputElement
A class that represents a rendered output element.
class TestOutputElement;
Constructor
new TestOutputElement()
Creates a new output element with the provided type.
Type members
type TestOutputElement.TypeString static
A string representation of common UI element types, used for TestOutputElement.type.type TestOutputElement.PlatformEvent static
Type definition for a set of platform event names.
Instance members
uid readonly
A unique ID for this element, which can be used to check for unnecessary re-rendering.type readonly
The UI element type that rendered this output element, one of TypeString values.parent
The parent element, if any, as rendered by a container UI element.output
A reference back to the rendered output object.name
UI element name, if any.disabled
True if input has been disabled for a control element.readOnly
True if text input has been marked as readonly.pressed
True if a button is visibly selected (pressed).value
The content of a text field input element.checked
The checked state of a toggle element.text
The rendered text content of an element: text element, button, toggle, or text field placeholder.icon
A string representation of the icon as rendered for text elements and buttons.chevron
The chevron direction (string) for button elements.imageUrl
The URL for an image element.accessibleRole
The WAI-ARIA role for this element, if any.accessibleLabel
The WAI-ARIA label text for this element, if any.focusable
True if this element can be focused on click, or call to focus().hasFocus()
Returns true if this element currently has input focus.variant
Variant style flags, if any (for button and text field elements).style
Style overrides applied to this element.position
Position options applied to this element.layout
Layout options applied to this element (containers only).content
A list of all nested content elements, for containers.click()
Simulates a user click or tap event.doubleClick()
Simulates a user double-click event.setValue()
Simulates text input on a text field element.focus()
Sets input focus on this element.blur()
Removes input focus from this element.sendPlatformEvent
Handles the specified (simulated) platform event.isOutput()
Returns true if the element is currently included in the render tree, and would be part of the on-screen output.remove()
Removes this element from its parent element, if any.matchStyleValues()
Checks if given styles match with the current style object.matchPositionValues()
Checks if given position values match the current position.matchLayoutValues()
Checks if given layout values match the current layout.querySelectFirst()
Returns the first (nested) element for which the provided callback returns true.querySelect()
Returns all (nested) elements for which the provided callback returns true.toJSON()
Returns a simplified object representation of this element and its contained elements.
