docs(puppeteer): fix unbalanced parentheses (#17778)

This commit is contained in:
maple 2022-10-04 18:12:38 +08:00 committed by GitHub
parent a9ef95f31e
commit 04cd31569a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ This guide describes migration to [Playwright Library](./library) and [Playwrigh
| `await browser.createIncognitoBrowserContext(...)` | `await browser.newContext(...)` |
| `await page.setViewport(...)` | `await page.setViewportSize(...)` |
| `await page.waitForXPath(XPathSelector)` | `await page.waitForSelector(XPathSelector)` |
| `await page.waitForNetworkIdle(...)` | `await page.waitForLoadState({ state: 'networkidle' }})` |
| `await page.waitForNetworkIdle(...)` | `await page.waitForLoadState({ state: 'networkidle' })` |
| `await page.$eval(...)` | [Assertions](./test-assertions) can often be used instead to verify text, attribute, class... |
| `await page.$(...)` | Discouraged, use [Locators](./api/class-locator) instead |
| `await page.$x(xpath_selector)` | Discouraged, use [Locators](./api/class-locator) instead |