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

Method getText

src/aria/tree/testing/item-harness.ts:70–72  ·  view source on GitHub ↗

Gets the tree item's text.

()

Source from the content-addressed store, hash-verified

68
69 /** Gets the tree item's text. */
70 async getText(): Promise<string> {
71 return (await this.host()).text({exclude: '[ngTreeItem], [ngTreeItemGroup]'});
72 }
73
74 /** Clicks the tree item. */
75 async click(): Promise<void> {

Callers 3

withMethod · 0.45
getTreeStructureMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected