It looks like this was a preview tutorial which has since been removed, so it is possible that this process will break at some point. In the meantime, it looks like the UI has changed so that while the data is captured it is not being displayed as an image.
Outputting to blob storage would be the simplest solution.
Add the additional binding to output.json:
{
"type": "blob",
"name": "myOutputBlob",
"path": "screenshots/{datetime:yyyy-mm-dd-hh-MM}.png", // I used a container called screenshots in the function app's storage account- update to whatever works best for you
"direction": "out"
}
After page navigation, get a screenshot from playwright and add it to that output binding.
// Open new page
const page = await browserContext.newPage();
await page.goto('https://www.bing.com/?toHttps=1&redig=69CC3FCA85A84B3AAFA1D638964EA2B1');
const buffer = await page.screenshot();
context.bindings.myOutputBlob = buffer
// Close page
await page.close();