MCPcopy Create free account
hub / github.com/angular/components / hasClass

Method hasClass

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

Checks whether the element has the given class.

(name: string)

Source from the content-addressed store, hash-verified

149
150 /** Checks whether the element has the given class. */
151 hasClass(name: string): Promise<boolean>;
152
153 /** Gets the dimensions of the element. */
154 getDimensions(): Promise<ElementDimensions>;

Callers 15

isOpenMethod · 0.65
isDisabledMethod · 0.65
isRequiredMethod · 0.65
isDisabledMethod · 0.65
isSelectedMethod · 0.65
isEditableMethod · 0.65
isEditingMethod · 0.65
hasMultipleRowsMethod · 0.65
getAppearanceMethod · 0.65
isLabelFloatingMethod · 0.65
isDisabledMethod · 0.65
isAutofilledMethod · 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

no test coverage detected