Skip to content

Commit 59fb588

Browse files
authored
Update playwright.mdx
update bullet list at bottom
1 parent 3d803b4 commit 59fb588

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/content/docs/browser-rendering/platform/playwright.mdx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,18 @@ import { env } from "cloudflare:workers";
200200
import { acquire, connect } from "@cloudflare/playwright";
201201

202202
async function reuseSameSession() {
203-
// acquires a new session
203+
// acquires a new session
204204
const { sessionId } = await acquire(env.BROWSER);
205205

206-
for (let i = 0; i < 5; i++) {
207-
// connects to the session that was previously acquired
208-
const browser = await connect(env.BROWSER, sessionId);
209-
210-
// ...
211-
212-
await browser.close();
213-
}
206+
for (let i = 0; i < 5; i++) {
207+
// connects to the session that was previously acquired
208+
const browser = await connect(env.BROWSER, sessionId);
209+
210+
// ...
211+
212+
// this will disconnect the browser from the session, but the session will be kept alive
213+
await browser.close();
214+
}
214215
}
215216
```
216217

@@ -309,11 +310,9 @@ The full Playwright API can be found at the [Playwright API documentation](https
309310

310311
The following capabilities are not yet fully supported, but we’re actively working on them:
311312

312-
- [API Testing](https://playwright.dev/docs/api-testing)
313313
- [Playwright Test](https://playwright.dev/docs/test-configuration) except [Assertions](https://playwright.dev/docs/test-assertions)
314314
- [Components](https://playwright.dev/docs/test-components)
315315
- [Firefox](https://playwright.dev/docs/api/class-playwright#playwright-firefox), [Android](https://playwright.dev/docs/api/class-android) and [Electron](https://playwright.dev/docs/api/class-electron), as well as different versions of Chrome
316-
- [Network](https://playwright.dev/docs/next/network#network)
317316
- [Videos](https://playwright.dev/docs/next/videos)
318317

319318
This is **not an exhaustive list** — expect rapid changes as we work toward broader parity with the original feature set. You can also check [latest test results](https://playwright-full-test-report.pages.dev/) for a granular up to date list of the features that are fully supported.

0 commit comments

Comments
 (0)