@netanelh2/playwright-framework
Version:
A robust Playwright TypeScript testing framework with Page Object Model, smart locators, and utilities
17 lines • 959 B
TypeScript
import { type Page } from '@playwright/test';
import type { StringOrRoleLocatorType } from '../types/locatorTypes.js';
import { LocatorUtils } from './LocatorUtils.js';
export declare class BasePage extends LocatorUtils {
constructor(page: Page);
protected validateText(locator: StringOrRoleLocatorType, text: string): Promise<void>;
protected validateURL(expectedURL: string): Promise<void>;
protected gotoURL(url: string): Promise<void>;
protected clickOnElement(locator: StringOrRoleLocatorType): Promise<void>;
protected fillInput(locator: string, text: string): Promise<void>;
protected hoverOnElement(locator: StringOrRoleLocatorType): Promise<void>;
protected validateVisibility(locator: StringOrRoleLocatorType): Promise<void>;
protected waitForSelectorState(locator: string, options?: {
state?: 'attached' | 'detached' | 'visible' | 'hidden';
}): Promise<void>;
}
//# sourceMappingURL=BasePage.d.ts.map