feat: revert to playwright screenshot
This commit is contained in:
@@ -180,8 +180,6 @@ export class RemoteBrowser {
|
|||||||
*/
|
*/
|
||||||
public makeAndEmitScreenshot = async (): Promise<void> => {
|
public makeAndEmitScreenshot = async (): Promise<void> => {
|
||||||
try {
|
try {
|
||||||
const html = await this.currentPage?.content();
|
|
||||||
await this.currentPage?.setContent(html || '')
|
|
||||||
const screenshot = await this.currentPage?.screenshot();
|
const screenshot = await this.currentPage?.screenshot();
|
||||||
if (screenshot) {
|
if (screenshot) {
|
||||||
this.emitScreenshot(screenshot.toString('base64'));
|
this.emitScreenshot(screenshot.toString('base64'));
|
||||||
|
|||||||
Reference in New Issue
Block a user