global functions

This commit is contained in:
2025-12-22 22:13:55 +01:00
parent 97b84013a0
commit b1aa3b72fb
3 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
const imageData = await $page.screenshot({ type: "png", encoding: "base64" });
const img_binary = {
binary: {
screenshot: {
data: imageData,
mimeType: "image/png",
fileName: "screenshot.png",
},
},
};