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

Method getText

src/material/menu/testing/menu-harness.ts:177–179  ·  view source on GitHub ↗

Gets the text of the menu item.

()

Source from the content-addressed store, hash-verified

175
176 /** Gets the text of the menu item. */
177 async getText(): Promise<string> {
178 return (await this.host()).text();
179 }
180
181 /** Focuses the menu item. */
182 async focus(): Promise<void> {

Callers 3

withMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected