import type { BrowserContext, Page } from 'playwright'; import { ElementHandle, PageInstance, ScreenshotOptions, WaitOptions } from '../../types'; /** * Playwright implementation of PageInstance */ export declare class PlaywrightPageInstance implements PageInstance { private page; private context; constructor(page: Page, context: BrowserContext); /** * Get the page URL */ getUrl(): Promise; /** * Get the page title */ getTitle(): Promise; /** * Navigate to a URL */ navigate(url: string): Promise; /** * Get page content */ content(): Promise; /** * Take a screenshot */ screenshot(options?: ScreenshotOptions): Promise; /** * Wait for selector to appear */ waitForSelector(selector: string, options?: WaitOptions): Promise; /** * Find element by selector */ findElement(selector: string): Promise; /** * Find elements by selector */ findElements(selector: string): Promise; /** * Wait for element to appear and return it */ waitForElement(selector: string, timeout?: number): Promise; /** * Close the page */ close(): Promise; /** * Execute JavaScript on the page */ evaluate(fn: () => T): Promise; /** * Click on an element */ click(selector: string): Promise; /** * Type text into an element */ type(selector: string, text: string): Promise; /** * Wait for a specific amount of time */ wait(ms: number): Promise; /** * Wait for page load */ waitForLoad(): Promise; /** * Get text content of an element */ getText(selector: string): Promise; /** * Get attribute value of an element */ getAttribute(selector: string, attribute: string): Promise; /** * Check if element is visible */ isVisible(selector: string): Promise; /** * Scroll to element */ scrollTo(selector: string): Promise; }