MCPcopy Create free account
hub / github.com/krausest/js-framework-benchmark / wait

Function wait

webdriver-ts/src/common.ts:182–186  ·  view source on GitHub ↗
(delay = 1000)

Source from the content-addressed store, hash-verified

180}
181
182export const wait = (delay = 1000) => {
183 console.log(`Waiting for ${delay} ms`);
184 if (delay === 0) return Promise.resolve();
185 else return new Promise((res) => setTimeout(res, delay));
186};
187

Callers 6

runCPUBenchmarkFunction · 0.70
runMemBenchmarkFunction · 0.70
checkElementNotExistsFunction · 0.70
checkElementExistsFunction · 0.70
checkElementContainsTextFunction · 0.70
checkElementHasClassFunction · 0.70

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected