MCPcopy Index your code
hub / github.com/angular/angular / getShadowDomText

Function getShadowDomText

integration/ng_elements/e2e/app.e2e-spec.ts:42–43  ·  view source on GitHub ↗
(el: ElementFinder)

Source from the content-addressed store, hash-verified

40 describe('(with `ShadowDom` view encapsulation)', () => {
41 const helloWorldShadowEl = element(by.css('hello-world-shadow-el'));
42 const getShadowDomText = (el: ElementFinder) =>
43 browser.executeScript('return arguments[0].shadowRoot.textContent', el);
44
45 it('should display "Hello World!"', function () {
46 expect(getShadowDomText(helloWorldShadowEl)).toBe('Hello World!');

Callers 1

app.e2e-spec.tsFile · 0.85

Calls 1

executeScriptMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…