playwright-fluent
Version:
Fluent API around playwright
7 lines (6 loc) • 460 B
TypeScript
import { ElementHandle } from 'playwright';
declare type HTMLElementMethods = Pick<HTMLElement, 'click' | 'focus' | 'blur'>;
declare type HTMLInputElementMethods = Pick<HTMLInputElement, 'select'>;
export declare type MethodName = keyof HTMLElementMethods | keyof HTMLInputElementMethods;
export declare function invokeMethodOnHandle(methodName: MethodName, selector: ElementHandle<Element> | undefined | null, selectorName: string): Promise<void>;
export {};