chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.dom / DOMDomain / scrollIntoViewIfNeeded

scrollIntoViewIfNeeded

suspend fun scrollIntoViewIfNeeded(input: ScrollIntoViewIfNeededRequest): Unit

Scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.

Official doc