PageLoaderElement class abstract

Base class for interacting with raw DOM elements, e.g. buttons, input fields, etc.

Inheritance
Implementers

Constructors

PageLoaderElement()

Properties

attributes PageLoaderAttributes
Attributes associated with this element.
no setter
classes List<String>
CSS classes associated with this element.
no setter
computedStyle PageLoaderAttributes
CSS properties of this element after applying the active stylesheets and resolving any basic computation, such as converting a percentage into an absolute length.
no setter
context → dynamic
The context of this PageLoaderElement. This should only be used if this API does not provide desired functionality; otherwise usage should be avoided.
no setter
contextSync → dynamic
Synchronously returns the context of this PageLoaderElement. This should only be used if this API does not provide desired functionality; otherwise usage should be avoided.
no setter
displayed bool
Whether this element is displayed based on "display" style.
no setter
exists bool
Whether this element exists on the page.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
Unique ID to identify the element.
no setter
innerText String
The inner content of this element.
no setter
isFocused bool
Whether this element is focused.
no setter
listeners List<PageLoaderListener>
Gets registered listeners.
no setter
name String
The tag name of the node represented by this element.
no setter
offset Rectangle<num>
The offset of this element relative to its parent.
no setter
properties PageLoaderAttributes
Attributes associated with this element.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seleniumAttributes PageLoaderAttributes
Attributes associated with this element.
no setter
shadowRoot PageLoaderElement
The shadow root hosted by this element.
no setter
shadowRootChildren List<PageLoaderElement>
The children of the shadow root hosted by this element.
no setter
style PageLoaderAttributes
This element's inline style attributes.
no setter
utils PageUtils
Returns an instance of PageUtils.
no setter
visibleText String
Visible text within this element.
no setter

Methods

addCheckers(List<Checker> checkers) → void
Adds additional Checkers to the list already maintained by the element.
addListeners(List<PageLoaderListener> listeners) → void
Adds listeners to element.
blur() Future<void>
Blurs the element (= lose focus).
byTag(String tag) PageLoaderElement
Finds PageLoaderElement from this source by tag.
inherited
clear({bool focusBefore = true, bool blurAfter = true}) Future<void>
Note: all elements below here should remain asynchronous to allow component tests to function properly. Clears the text of this element, if possible (e.g. for text fields).
click({ClickOption? clickOption}) Future<void>
Clicks on the element with clickOption. clickOption is only used for HTML.
clickOutside() Future<void>
Clicks outside of the current element.
createElement(Finder finder, List<Filter> filter, List<Checker> checkers) PageLoaderElement
Creates a new element based on the current context plus the passed Finder, Filters, and Checkers.
createIterable(Finder finder, List<Filter> filter, List<Checker> checkers) PageElementIterable
Creates a new iterable based on the current context plus the passed Finder, Filters, and Checkers.
createList(Finder finder, List<Filter> filter, List<Checker> checkers) List<PageLoaderElement>
Creates a new list based on the current context plus the passed Finder, Filters, and Checkers.
dispatchCustomEvent(String eventName, {Object? detail}) Future<void>
Dispatches the eventName custom event on this element.
focus() Future<void>
Focuses the element.
getBoundingClientRect() Rectangle<num>
The smallest bounding rectangle that encompasses this element's padding, scrollbar, and border.
getElementsByCss(String selector) List<PageLoaderElement>
Returns the elements within this element that match the given CSS selector.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scroll({int? x, int? y}) Future<void>
Scrolls this element in x and/or y direction by pixels.
scrollIntoView() Future<void>
Scrolls this element into view.
testCreatorGetters() String
Gives all getters that can be used by Test Creator.
testCreatorMethods() String
Gives all unannotated methods that can be used by Test Creator.
toString() String
A string representation of this object.
inherited
toStringDeep() String
Gives a full description of the element for debugger.
type(String keys, {bool focusBefore = true, bool blurAfter = true}) Future<void>
Types keys into this element, if possible (e.g. for an input element).
typeSequence(PageLoaderKeyboard keys) Future<void>
Types sequence of keyboard keys into element, if possible.

Operators

operator ==(Object other) bool
The equality operator.
inherited