# @embedpdf/angular — ./testing EpdfSearchLayerHarness [ClassDeclaration] (from packages/framework/angular/testing/src/harnesses.ts): export class EpdfSearchLayerHarness extends ComponentHarness{ static hostSelector = 'epdf-search-layer'; static with(options: BaseHarnessFilters ={ } ): HarnessPredicate{ return new HarnessPredicate(EpdfSearchLayerHarness, options); } private readonly highlights = this.locatorForAll('[data-epdf-search-hit]'); private readonly activeHighlights = this.locatorForAll('[data-epdf-search-hit][data-active]'); async getHighlightCount(): Promise{ return (await this.highlights()).length; } async getActiveHighlightCount(): Promise{ return (await this.activeHighlights()).length; } async isClickable(): Promise{ const [first] = await this.highlights(); return first ? (await first.getCssValue('pointer-events')) === 'auto' : false; } async clickHighlight(index: number): Promise{ const highlights = await this.highlights(); const highlight = highlights[index]; if (!highlight){ throw new Error( `EpdfSearchLayerHarness: no highlight ${ index} ; the page shows ${ highlights.length} .`, ); } await highlight.click(); } } EpdfStageHarness [ClassDeclaration] (from packages/framework/angular/testing/src/harnesses.ts): export class EpdfStageHarness extends ContentContainerComponentHarness{ static hostSelector = 'epdf-stage'; static with(options: BaseHarnessFilters ={ } ): HarnessPredicate{ return new HarnessPredicate(EpdfStageHarness, options); } private readonly pages = this.locatorForAll('epdf-page-surface'); async getShownPageCount(): Promise{ return (await this.pages()).length; } async getCursor(): Promise{ return (await this.host()).getCssValue('cursor'); } async scrollBy(deltaY: number, deltaX = 0): Promise{ await (await this.host()).dispatchEvent('wheel', { deltaX, deltaY} ); } }