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

Function getShadowDomText

integration/ng_elements/e2e/app.e2e-spec.ts:54–55  ·  view source on GitHub ↗
(el: WebElement)

Source from the content-addressed store, hash-verified

52
53 describe('(with `ShadowDom` view encapsulation)', () => {
54 const getShadowDomText = async (el: WebElement) =>
55 (await driver.executeScript('return arguments[0].shadowRoot.textContent', el)) as string;
56
57 it('should display "Hello World!"', async () => {
58 const helloWorldShadowEl = await driver.findElement(By.css('hello-world-shadow-el'));

Callers 1

app.e2e-spec.tsFile · 0.85

Calls 1

executeScriptMethod · 0.45

Tested by

no test coverage detected