Skip to content
masterclass Buddy

Playwright · Class

ElementHandle

ElementHandle represents one DOM element in a page. Playwright discourages it for most tests; use Locator objects and web-first assertions instead.

Last updated

Since
before v1.9

Syntax

class ElementHandle extends JSHandle

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • JSHandle
  • Locator
  • boundingBox
  • contentFrame
  • ownerFrame
  • waitForElementState
  • page.$
  • locator.click

Source: ElementHandle | Playwright. Checked 2026-11-03.