Skip to main content Skip to docs navigation

Perform DOM operations directly on the matched element using Element:: commands.

On this page
Action
Element Finder Value
Element::Description
Element::removeRemove the matched element from the DOM.
Element::scrollIntoViewScroll the element into the visible area of the viewport.
Element::scrollIntoView::trueScroll so the element is aligned to the top of the viewport.
Element::scrollIntoView::falseScroll 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.