MCPcopy Index your code
hub / github.com/Sandpack/nodebox-runtime / getBridgeFrameLocator

Function getBridgeFrameLocator

tests/index.ts:54–62  ·  view source on GitHub ↗
({ page }, use)

Source from the content-addressed store, hash-verified

52 },
53
54 async getBridgeFrameLocator({ page }, use) {
55 await use(async () => {
56 // First, wait for the "Previews" frame to become visible.
57 // This frame hosts the bridge and the app's preview frame.
58 const previewsFrame = page.frameLocator('#frame');
59 await previewsFrame.locator('html').waitFor();
60 return previewsFrame.frameLocator('[name="bridge"]').locator('body');
61 });
62 },
63
64 async getPreviewFrameLocator({ page }, use) {
65 await use(async () => {

Callers 2

getPreviewFrameFunction · 0.85

Calls 1

waitForMethod · 0.80

Tested by

no test coverage detected