Skip to content

attachToDOM

attachToDOM(driver, host, opts?): () => void

Defined in: src/driver/web/dom.ts:131

Wire a WebDriver to a DOM element: frames render as HTML inside it, and its keyboard/mouse/paste events drive the app. Returns a detach function. Browser-only — requires document.

WebDriver

HTMLElement

AttachOptions = {}

() => void