MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getFirstFrame

Function getFirstFrame

test/e2e/doc-shots.test.ts:15–18  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

13const DOC_SHOT_VIEWPORT = {width: 1440, height: 2400};
14
15const getFirstFrame = async (page: Page): Promise<Frame | undefined> => {
16 const handle = await page.locator('iframe').first().elementHandle();
17 return (await handle?.contentFrame()) ?? undefined;
18};
19
20const prepareFirstFrame = async (page: Page): Promise<void> => {
21 const iframe = page.locator('iframe').first();

Callers 4

prepareFirstFrameFunction · 0.85
applyDocShotStyleFunction · 0.85
stabilizeDocShotFunction · 0.85
waitForDocShotImagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…