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

Method getText

src/material/button/testing/button-harness.ts:95–97  ·  view source on GitHub ↗

Gets a promise for the button's label text.

()

Source from the content-addressed store, hash-verified

93
94 /** Gets a promise for the button's label text. */
95 async getText(): Promise<string> {
96 return (await this.host()).text();
97 }
98
99 /** Focuses the button and returns a void promise that indicates when the action is complete. */
100 async focus(): Promise<void> {

Callers 2

withMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected