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

Method matchesSelector

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

Checks whether this element matches the given selector.

(selector: string)

Source from the content-addressed store, hash-verified

158
159 /** Checks whether this element matches the given selector. */
160 matchesSelector(selector: string): Promise<boolean>;
161
162 /** Checks whether the element is focused. */
163 isFocused(): Promise<boolean>;

Callers 7

isOpenMethod · 0.65
isMenuBarMethod · 0.65
hasSubmenuMethod · 0.65
constructorMethod · 0.65
crossEnvironmentSpecsFunction · 0.65
checkIsElementFunction · 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