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

Function getProperty

javascript/atoms/typescript/get-attribute.ts:87–89  ·  view source on GitHub ↗
(element: Element, propertyName: string)

Source from the content-addressed store, hash-verified

85 }
86
87 function getProperty(element: Element, propertyName: string): unknown {
88 return (element as unknown as Record<string, unknown>)[propertyName];
89 }
90
91 function isElement(node: unknown, tagName?: string): node is Element {
92 const elem = node as { nodeType?: number; tagName?: string } | null;

Callers 1

getFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected