MCPcopy Create free account
hub / github.com/angular/angular / getComponentText

Function getComponentText

modules/playground/e2e_test/jsonp/jsonp_spec.ts:41–45  ·  view source on GitHub ↗
(driver: webdriver.WebDriver, selector: string, innerSelector: string)

Source from the content-addressed store, hash-verified

39});
40
41function getComponentText(driver: webdriver.WebDriver, selector: string, innerSelector: string) {
42 return driver.executeScript<string>(
43 `return document.querySelector("${selector}").querySelector("${innerSelector}").textContent.trim()`,
44 );
45}

Callers 1

jsonp_spec.tsFile · 0.70

Calls 1

executeScriptMethod · 0.45

Tested by

no test coverage detected