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

Method getTextContent

src/material/tabs/testing/tab-harness.ts:75–79  ·  view source on GitHub ↗

Gets the text content of the tab.

()

Source from the content-addressed store, hash-verified

73
74 /** Gets the text content of the tab. */
75 async getTextContent(): Promise<string> {
76 const contentId = await this._getContentId();
77 const contentEl = await this.documentRootLocatorFactory().locatorFor(`#${contentId}`)();
78 return contentEl.text();
79 }
80
81 protected override async getRootHarnessLoader(): Promise<HarnessLoader> {
82 const contentId = await this._getContentId();

Calls 4

_getContentIdMethod · 0.95
locatorForMethod · 0.80
textMethod · 0.65

Tested by

no test coverage detected