···1313- **Default:** `data-testid`
14141515Attribute used to find elements with `getByTestId` locator.
1616+1717+## browser.locators.exact <Version type="experimental">4.1.3</Version> {#browser-locators-exact}
1818+1919+- **Type:** `boolean`
2020+- **Default:** `false`
2121+2222+When set to `true`, [locators](/api/browser/locators) will match text exactly by default, requiring a full, case-sensitive match. Individual locator calls can override this default via their own `exact` option.
2323+2424+```ts
2525+// With exact: false (default), this matches "Hello, World!", "Say Hello, World", etc.
2626+// With exact: true, this only matches the string "Hello, World" exactly.
2727+const locator = page.getByText('Hello, World', { exact: true })
2828+await locator.click()
2929+```
···5252 return new Promise(resolve => setTimeout(resolve, ms))
5353}
54545555-// we prefer using playwright locators because they are more powerful and support Shadow DOM
5655export const selectorEngine: Ivya = Ivya.create({
5656+ exact: server.config.browser.locators.exact,
5757 browser: ((name: string) => {
5858 switch (name) {
5959 case 'edge':