MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / page

Function page

atomic-cli/tests/review_viewer_browser.mjs:57–57  ·  view source on GitHub ↗
(method, params)

Source from the content-addressed store, hash-verified

55 const { targetId } = await send('Target.createTarget', { url: 'about:blank' });
56 const { sessionId } = await send('Target.attachToTarget', { targetId, flatten: true });
57 const page = (method, params) => send(method, params, sessionId);
58 const evaluate = async expression => {
59 const result = await page('Runtime.evaluate', { expression, returnByValue: true, awaitPromise: true, userGesture: true });
60 assert(!result.exceptionDetails, JSON.stringify(result.exceptionDetails));

Callers 3

evaluateFunction · 0.85
loadFunction · 0.85

Calls 1

sendFunction · 0.85

Tested by

no test coverage detected