UNPKG

@agnos-ui/page-objects

Version:

Page objects to be used when testing AgnosUI-based applications with Playwright.

67 lines (66 loc) 2.06 kB
import { BasePO } from '@agnos-ui/base-po'; import type { Locator } from '@playwright/test'; export declare const sliderSelectors: { rootComponent: string; clickableArea: string; handle: string; tick: string; tickLabel: string; tickLabelVertical: string; tickLabelNow: string; minLabelHorizontal: string; maxLabelHorizontal: string; minLabelVertical: string; maxLabelVertical: string; valueLabel: string; progress: string; }; export declare class SliderPO extends BasePO { selectors: { rootComponent: string; clickableArea: string; handle: string; tick: string; tickLabel: string; tickLabelVertical: string; tickLabelNow: string; minLabelHorizontal: string; maxLabelHorizontal: string; minLabelVertical: string; maxLabelVertical: string; valueLabel: string; progress: string; }; getComponentSelector(): string; get locatorHandle(): Locator; get locatorTick(): Locator; get locatorTickLabel(): Locator; get locatorTickLabelNow(): Locator; get locatorTickLabelVertical(): Locator; get locatorMinLabelHorizontal(): Locator; get locatorMaxLabelHorizontal(): Locator; get locatorMinLabelVertical(): Locator; get locatorMaxLabelVertical(): Locator; get locatorProgress(): Locator; get locatorValueLabel(): Locator; sliderHandleState(): Promise<{ style: string | null; value: string | null; min: string | null; max: string | null; disabled: string | null; readonly: string | null; ariaLabel: string | null; ariaValueText: string | null; }[]>; sliderProgressState(): Promise<(string | null)[]>; /** * Get the state of the tick elements * @param locator tick locator (horizontal or vertical) * @returns state of all the ticks */ sliderTickLabelState(locator: Locator): Promise<{ style: string | null; innerText: string; }[]>; }