You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Import specific YAML types, remove Scalar from type-only
21
-
// Removed YAML types no longer needed by this version
22
-
import{Writable}from'stream';// Import Writable for process.stderr - KEEPING this as it might be used elsewhere implicitly, though not directly in this class version
23
3
24
4
typePageOrFrameLocator=Page|FrameLocator;
25
5
26
6
exportclassPageSnapshot{
27
7
private_frameLocators: PageOrFrameLocator[]=[];
28
8
private_text!: string;
29
-
// Removed _snapshotDoc as it's not used in this version
30
9
31
10
constructor(){
32
11
}
@@ -42,7 +21,6 @@ export class PageSnapshot {
42
21
}
43
22
44
23
privateasync_build(page: Page){
45
-
// Removed storing to _snapshotDoc
46
24
constyamlDocument=awaitthis._snapshotFrame(page);
47
25
this._text=[
48
26
`- Page Snapshot`,
@@ -53,15 +31,12 @@ export class PageSnapshot {
53
31
].join('\n');
54
32
}
55
33
56
-
// Reverted _snapshotFrame to match the provided example exactly
0 commit comments