MCPcopy
hub / github.com/web-infra-dev/midscene / create

Method create

packages/core/src/screenshot-item.ts:52–54  ·  view source on GitHub ↗

Create a new ScreenshotItem from base64 data

(base64: string, capturedAt: number)

Source from the content-addressed store, hash-verified

50
51 /** Create a new ScreenshotItem from base64 data */
52 static create(base64: string, capturedAt: number): ScreenshotItem {
53 return new ScreenshotItem(uuid(), base64, capturedAt);
54 }
55
56 get id(): string {
57 return this._id;

Callers 15

createFakeContextFunction · 0.45
buildContextFunction · 0.45
buildExecutionFunction · 0.45
writeReportFunction · 0.45
fakeScreenshotFunction · 0.45
createMockUIContextFunction · 0.45
createEmptyUIContextFunction · 0.45
createAgentStubFunction · 0.45
report-cli.test.tsFile · 0.45
writeFakeReportFunction · 0.45

Calls 1

uuidFunction · 0.90

Tested by 15

buildExecutionFunction · 0.36
writeReportFunction · 0.36
fakeScreenshotFunction · 0.36
createMockUIContextFunction · 0.36
createEmptyUIContextFunction · 0.36
createAgentStubFunction · 0.36
writeFakeReportFunction · 0.36
createAgentStubFunction · 0.36
createAgentStubFunction · 0.36
fakeUIContextBuilderFunction · 0.36
createMockUIContextFunction · 0.36
fakeScreenshotFunction · 0.36