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

Method locatorFor

src/cdk/testing/component-harness.ts:200–200  ·  view source on GitHub ↗

* Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance * or element under the root element of this `LocatorFactory`. * * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` * * ```html * </di

(
    ...queries: T
  )

Source from the content-addressed store, hash-verified

198 * each query.
199 */
200 locatorFor<T extends (HarnessQuery<any> | string)[]>(
201 ...queries: T
202 ): () => Promise<LocatorFnResult<T>>;
203

Callers 15

getPopupWidgetMethod · 0.80
getSubmenuMethod · 0.80
MatPaginatorHarnessClass · 0.80
getInputMethod · 0.80
MatChipHarnessClass · 0.80
geEditButtonMethod · 0.80
getRemoveButtonMethod · 0.80
getEditInputMethod · 0.80
MatFormFieldHarnessClass · 0.80
getContentMethod · 0.80
getContentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected