MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / forEachElement

Function forEachElement

javascript/selenium-webdriver/lib/promise.js:240–244  ·  view source on GitHub ↗
(arr, fn)

Source from the content-addressed store, hash-verified

238 }
239
240 async function forEachElement(arr, fn) {
241 for (let i = 0; i < arr.length; i++) {
242 await fn(arr[i], i)
243 }
244 }
245
246 const forEachKey = isArray ? forEachElement : forEachProperty
247 await forEachKey(obj, async function (partialValue, key) {

Callers

nothing calls this directly

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected