Element
Perform DOM operations directly on the matched element using Element:: commands.
On this page
Action
| Element Finder | Value |
|---|---|
| Element:: | Description |
|---|---|
Element::remove | Remove the matched element from the DOM. |
Element::scrollIntoView | Scroll the element into the visible area of the viewport. |
Element::scrollIntoView::true | Scroll so the element is aligned to the top of the viewport. |
Element::scrollIntoView::false | Scroll so the element is aligned to the bottom of the viewport. |
Element::scrollIntoView::{"behavior":"smooth","block":"end","inline":"nearest"} | Scroll with custom options (behavior, block, inline). |
The options object for scrollIntoView follows the ScrollIntoViewOptions API.