UNPKG

playwright-fluent

Version:
7 lines (6 loc) 460 B
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 {};