Version
0.0.10
Steps to reproduce
Deploy the following worker
import { launch } from '@cloudflare/playwright';
export default {
async fetch(request: Request, env: Env) {
const browser = await launch(env.MYBROWSER);
const page = await browser.newPage();
await page.goto('https://www.google.com/shopping/product/2952639642818279633/offers');
const img = await page.screenshot();
await browser.close();
return new Response(img, {
headers: {
'Content-Type': 'image/png',
},
});
},
}
Expected behavior
I expected Playwright to return this screenshot of the page:

Actual behavior
Playwright isn't able to render JavaScript and returns a blank page:

Additional context
No response
Environment