---
title: "frameElement() | Grafana k6 documentation"
description: "Browser module: frame.frameElement() method"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# frameElement()

This method returns the frame’s [DOM element](https://developer.mozilla.org/en-US/docs/Web/API/Element) as an [ElementHandle](/docs/k6/next/javascript-api/k6-browser/elementhandle/).

### Returns

Expand table

| Type                     | Description                                                                                                                          |
|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
| `Promise<ElementHandle>` | A Promise that fulfills with the [ElementHandle](/docs/k6/next/javascript-api/k6-browser/elementhandle/) of the frame’s DOM element. |
