MCPcopy Create free account
hub / github.com/appium/appium / wrapElement

Function wrapElement

packages/support/lib/util.ts:276–281  ·  view source on GitHub ↗
(elementId: string)

Source from the content-addressed store, hash-verified

274 * @returns Element object with both ELEMENT and W3C identifier keys
275 */
276export function wrapElement(elementId: string): Element {
277 return {
278 ELEMENT: elementId,
279 [W3C_WEB_ELEMENT_IDENTIFIER]: elementId,
280 } as Element;
281}
282
283/**
284 * Returns a copy of the object containing only properties that pass the predicate.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected