# Source: https://vitest.dev/api/browser/locators.md

# Source: https://vitest.dev/config/browser/locators.md

---
url: /config/browser/locators.md
---

# browser.locators

Options for built-in [browser locators](/api/browser/locators).

## browser.locators.testIdAttribute

* **Type:** `string`
* **Default:** `data-testid`

Attribute used to find elements with `getByTestId` locator.