MCPcopy
hub / github.com/angular/components / getAttribute

Method getAttribute

src/cdk/testing/test-element.ts:148–148  ·  view source on GitHub ↗

Gets the value for the given attribute from the element.

(name: string)

Source from the content-addressed store, hash-verified

146
147 /** Gets the value for the given attribute from the element. */
148 getAttribute(name: string): Promise<string | null>;
149
150 /** Checks whether the element has the given class. */
151 hasClass(name: string): Promise<boolean>;

Callers 15

selection.spec.tsFile · 0.65
constructorMethod · 0.65
constructorMethod · 0.65
onKeyDownMethod · 0.65
toolbar.spec.tsFile · 0.65
isDisabledMethod · 0.65
getOrientationMethod · 0.65
isActiveMethod · 0.65
isDisabledMethod · 0.65
isSelectedMethod · 0.65
combobox.spec.tsFile · 0.65

Implementers 3

ProtractorElementsrc/cdk/testing/protractor/protractor-
SeleniumWebDriverElementsrc/cdk/testing/selenium-webdriver/sel
UnitTestElementsrc/cdk/testing/testbed/unit-test-elem

Calls

no outgoing calls

Tested by 15

getVisibleTreeItemsFunction · 0.52
isTriggerActiveFunction · 0.52
isTriggerExpandedFunction · 0.52
getTriggerAttributeFunction · 0.52
getPanelAttributeFunction · 0.52
getActiveCellIdFunction · 0.52
isSubmenuExpandedFunction · 0.52
isExpandedFunction · 0.52
runNavigationTestsFunction · 0.52
isTabFocusedFunction · 0.52
getFocusedTreeItemValueFunction · 0.52