UNPKG

chromancer

Version:

A powerful command-line interface for automating Chrome browser using Playwright. Perfect for web scraping, automation, testing, and browser workflows.

14 lines (13 loc) 589 B
import { Page, ElementHandle } from 'playwright'; /** * Safely evaluate JavaScript in the page context with error handling */ export declare function safeEvaluate<T = any>(page: Page, pageFunction: string | Function, ...args: any[]): Promise<T>; /** * Get a single property from an element */ export declare function evaluateElementProperty(element: ElementHandle, property: string): Promise<any>; /** * Get multiple properties from an element at once */ export declare function evaluateElementProperties(element: ElementHandle, properties?: string[]): Promise<Record<string, any>>;