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

Function sleep

packages/core/src/utils.ts:362–364  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

360}
361
362export async function sleep(ms: number) {
363 return new Promise((resolve) => setTimeout(resolve, ms));
364}
365
366export function replacerForPageObject(_key: string, value: any) {
367 if (value && value.constructor?.name === 'Page') {

Callers 15

handleActionPlanMethod · 0.90
createWebInputPrimitivesFunction · 0.90
mouseMethod · 0.90
backspaceMethod · 0.90
killRunningServerFunction · 0.90
temp.test.tsFile · 0.90
sauce-demo.test.tsFile · 0.90
misc.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 7

focusTodoMvcPageFunction · 0.72
switchToRecorderFunction · 0.72
startBridgeServerFunction · 0.72
switchToBridgeFunction · 0.72
openEnvConfigModalFunction · 0.72
switchToBridgeFunction · 0.72
openEnvConfigModalFunction · 0.72