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

Method getText

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

Gets the text of the menu item.

()

Source from the content-addressed store, hash-verified

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

Callers 3

withMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected