-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Create 2025-09-25-br-playwright-ga-stagehand-limits.mdx #25401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+53
−0
Merged
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
261fde1
Create 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl 9c2a7a3
Update 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl b2d8857
Update 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl c0dd063
Add files via upload
kathayl 35edec2
Update 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl f9893ec
Update 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl 6cba6a1
Update 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl 2f159e4
Update 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl 94aa845
Update 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl 34e07d0
Update 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl 45d748e
Update 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl 8abf674
Update 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl b3bc18b
Merge remote-tracking branch 'origin/production' into kathayl-patch-18-1
ToriLindsay 0e37f0f
fix error double slashes
ToriLindsay 8366437
Fixing gif issue
ToriLindsay 6aa94cd
Add files via upload
kathayl 9525c38
Update 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl 218a1dc
Update 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl d9a5c19
Update 2025-09-25-br-playwright-ga-stagehand-limits.mdx
kathayl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions
53
...nt/changelog/browser-rendering/2025-09-25-br-playwright-ga-stagehand-limits.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| --- | ||
| title: Browser Rendering Playwright GA, Stagehand support (Beta), and higher limits | ||
| description: Browser Rendering birthday week announcements | ||
| products: | ||
| - browser-rendering | ||
| date: 2025-09-25T12:00:00Z | ||
| --- | ||
|
|
||
| We’re shipping three updates to Browser Rendering. | ||
| - Playwright support is now Generally Available and synced with [Playwright v1.55](https://playwright.dev/docs/release-notes#version-155), giving you a stable foundation for critical automation and AI-agent workflows. | ||
| - We’re also adding [Stagehand support (Beta)](/browser-rendering/platform/stagehand/) so you can combine code with natural language instructions to build more resilient automations. | ||
| - Finally, we’ve tripled [limits](/browser-rendering/platform/limits/#workers-paid) for paid plans across both the [REST API](/browser-rendering/rest-api/) and [Workers Bindings](/browser-rendering/workers-bindings/) to help you scale. | ||
|
|
||
| To get started with Stagehand, check out this [example guide](/browser-rendering/platform/stagehand/) that uses Stagehand and [Workers AI](/workers-ai/) to search for a movie on this [example movie directory](https://demo.playwright.dev/movies), extract its details using natural language (title, year, rating, duration, and genre), and return the information along with a screenshot of the webpage. | ||
kathayl marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ```ts title="Stagehand example" | ||
| const stagehand = new Stagehand({ | ||
| env: "LOCAL", | ||
| localBrowserLaunchOptions: { cdpUrl: endpointURLString(env.BROWSER) }, | ||
| llmClient: new WorkersAIClient(env.AI), | ||
| verbose: 1, | ||
| }); | ||
|
|
||
| await stagehand.init(); | ||
| const page = stagehand.page; | ||
|
|
||
| await page.goto('https://demo.playwright.dev/movies'); | ||
|
|
||
| // if search is a multi-step action, stagehand will return an array of actions it needs to act on | ||
| const actions = await page.observe('Search for "Furiosa"'); | ||
| for (const action of actions) | ||
| await page.act(action); | ||
|
|
||
| await page.act('Click the search result'); | ||
|
|
||
| // normal playwright functions work as expected | ||
| await page.waitForSelector('.info-wrapper .cast'); | ||
|
|
||
| let movieInfo = await page.extract({ | ||
| instruction: 'Extract movie information', | ||
| schema: z.object({ | ||
| title: z.string(), | ||
| year: z.number(), | ||
| rating: z.number(), | ||
| genres: z.array(z.string()), | ||
| duration: z.number().describe("Duration in minutes"), | ||
| }), | ||
| }); | ||
|
|
||
| await stagehand.close(); | ||
| ``` | ||
|
|
||
|  | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.