docs: clarify the waitForXPath return type (#9541) (#9583)

This commit is contained in:
Rafael-Martins
2023-02-01 12:23:32 -03:00
committed by GitHub
parent 1dd7bbe04f
commit f12f27e1eb
6 changed files with 28 additions and 24 deletions

View File

@@ -64,7 +64,7 @@ class ElementHandle {
Promise<[ElementHandle](./puppeteer.elementhandle.md)<Node> \| null>
Promise which resolves when element specified by xpath string is added to DOM. Resolves to `null` if waiting for `hidden: true` and xpath is not found in DOM.
Promise which resolves when element specified by xpath string is added to DOM. Resolves to `null` if waiting for `hidden: true` and xpath is not found in DOM, otherwise resolves to `ElementHandle`.
## Remarks