diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index 1122a67b1a..37e30016f7 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -10576,7 +10576,7 @@ export interface Locator { * Returns an array of `node.innerText` values for all matching nodes. * * **NOTE** If you need to assert text on the page, prefer - * [locatorAssertions.toHaveText(expected[, options])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-text) + * [expect(locator).toHaveText(expected[, options])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-text) * with `useInnerText` option to avoid flakiness. See [assertions guide](https://playwright.dev/docs/test-assertions) for more details. * * **Usage** @@ -10592,7 +10592,7 @@ export interface Locator { * Returns an array of `node.textContent` values for all matching nodes. * * **NOTE** If you need to assert text on the page, prefer - * [locatorAssertions.toHaveText(expected[, options])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-text) + * [expect(locator).toHaveText(expected[, options])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-text) * to avoid flakiness. See [assertions guide](https://playwright.dev/docs/test-assertions) for more details. * * **Usage** @@ -10898,7 +10898,7 @@ export interface Locator { * Returns the number of elements matching the locator. * * **NOTE** If you need to assert the number of elements on the page, prefer - * [locatorAssertions.toHaveCount(count[, options])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-count) + * [expect(locator).toHaveCount(count[, options])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-count) * to avoid flakiness. See [assertions guide](https://playwright.dev/docs/test-assertions) for more details. * * **Usage** @@ -11249,7 +11249,7 @@ export interface Locator { * Returns the matching element's attribute value. * * **NOTE** If you need to assert an element's attribute, prefer - * [locatorAssertions.toHaveAttribute(name, value[, options])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-attribute) + * [expect(locator).toHaveAttribute(name, value[, options])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-attribute) * to avoid flakiness. See [assertions guide](https://playwright.dev/docs/test-assertions) for more details. * @param name Attribute name to get the value for. * @param options @@ -11668,7 +11668,7 @@ export interface Locator { * Returns the [`element.innerText`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText). * * **NOTE** If you need to assert text on the page, prefer - * [locatorAssertions.toHaveText(expected[, options])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-text) + * [expect(locator).toHaveText(expected[, options])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-text) * with `useInnerText` option to avoid flakiness. See [assertions guide](https://playwright.dev/docs/test-assertions) for more details. * @param options */ @@ -11686,7 +11686,7 @@ export interface Locator { * Returns the value for the matching `` or `