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

Function getAttribute

javascript/atoms/typescript/get-attribute.ts:83–85  ·  view source on GitHub ↗
(element: Element, attributeName: string)

Source from the content-addressed store, hash-verified

81 ]);
82
83 function getAttribute(element: Element, attributeName: string): string | null {
84 return element.getAttribute(attributeName.toLowerCase());
85 }
86
87 function getProperty(element: Element, propertyName: string): unknown {
88 return (element as unknown as Record<string, unknown>)[propertyName];

Callers 1

getFunction · 0.70

Calls 1

getAttributeMethod · 0.65

Tested by

no test coverage detected