From d8733d9229444132a9bea1597469f5791da23837 Mon Sep 17 00:00:00 2001 From: Xuan <97ssps30212@gmail.com> Date: Thu, 4 Jan 2024 01:39:57 +0800 Subject: [PATCH] docs: remove the create method from extensibility (#28823) I saw the `create` method in the [Extensibility](https://playwright.dev/docs/extensibility) section of the document but didn't quite understand its actual purpose. Therefore, I attempted to add this method in the test examples, but it seems that regardless of what this method returns or if it throws an error, it has no effect. Upon further examination of the [selectors.ts](https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/client/selectors.ts) and [types.ts](https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/client/types.ts#L129) files, I noticed that this method is not defined. Consequently, I opened this pull request to remove the description of this method to prevent any potential misunderstandings by others. If there are any misunderstandings, feel free to close this pull request. Thank you. --- docs/src/extensibility.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/src/extensibility.md b/docs/src/extensibility.md index 1dec0b3d3e..ca423ca6ca 100644 --- a/docs/src/extensibility.md +++ b/docs/src/extensibility.md @@ -7,8 +7,6 @@ title: "Extensibility" Playwright supports custom selector engines, registered with [`method: Selectors.register`]. Selector engine should have the following properties: -- `create` function to create a relative selector from `root` (root is either a `Document`, `ShadowRoot` or `Element`) - to a `target` element. - `query` function to query first element matching `selector` relative to the `root`. - `queryAll` function to query all elements matching `selector` relative to the `root`.