global functions
This commit is contained in:
11
Workflow/MyDealz Kommentare/global_image.js
Normal file
11
Workflow/MyDealz Kommentare/global_image.js
Normal 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",
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user