UNPKG

@agnos-ui/page-objects

Version:

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

43 lines (42 loc) 1.08 kB
import { BasePO } from '@agnos-ui/base-po'; import type { Locator } from '@playwright/test'; export declare const carouselSelectors: { rootComponent: string; container: string; slide: string; nextBtn: string; prevBtn: string; indicators: string; indicatorBtn: string; }; export interface CarouselPOState { rootClasses: string[]; prevBtn: boolean; nextBtn: boolean; indicators: { selected: number; count: number; }; slides: { visible: number; }; } export declare class CarouselPO extends BasePO { selectors: { rootComponent: string; container: string; slide: string; nextBtn: string; prevBtn: string; indicators: string; indicatorBtn: string; }; getComponentSelector(): string; get locatorContainer(): Locator; get locatorNextBtn(): Locator; get locatorPrevBtn(): Locator; get locatorIndicators(): Locator; get locatorIndicatorBtn(): Locator; get locatorSlide(): Locator; state(): Promise<CarouselPOState>; }