Auto-reload the screenshot
This commit is contained in:
parent
f5249e361c
commit
b1d53b845d
@ -28,6 +28,9 @@
|
|||||||
screenshotImage.src = imageUrl;
|
screenshotImage.src = imageUrl;
|
||||||
screenshotImage.style.display = 'block';
|
screenshotImage.style.display = 'block';
|
||||||
})
|
})
|
||||||
|
.then(() => {
|
||||||
|
setTimeout(takeScreenshot, 500);
|
||||||
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.error('Error taking screenshot:', error);
|
console.error('Error taking screenshot:', error);
|
||||||
});
|
});
|
||||||
@ -58,7 +61,6 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body onload="init()">
|
<body onload="init()">
|
||||||
<button onclick="takeScreenshot()">Refresh Screenshot</button>
|
|
||||||
<div id="screenshot-div">
|
<div id="screenshot-div">
|
||||||
<p><strong>Click on the Image to Trigger Click at X, Y:</strong></p>
|
<p><strong>Click on the Image to Trigger Click at X, Y:</strong></p>
|
||||||
<img id="screenshot" width='1280px' height='720px' style="display:none;" />
|
<img id="screenshot" width='1280px' height='720px' style="display:none;" />
|
||||||
|
Loading…
Reference in New Issue
Block a user