返回 DeepSeek-Reasonix
playwrightInjected.d.ts
根目录 / desktop / electron / src / main / browser / playwrightInjected.d.ts
1 declare module "reasonix-playwright-injected" {
2 export class InjectedScript {
3 constructor(window: Window, options: { isUnderTest: boolean; sdkLanguage: string; testIdAttributeName: string; stableRafCount: number; browserName: string; customEngines: unknown[]; isUtilityWorld: boolean });
4 ariaSnapshotWithRefs(root: Element, options: { mode: "ai" }): { text: string };
5 parseSelector(selector: string): unknown;
6 querySelectorAll(selector: unknown, root: Document | Element): Element[];
7 elementState(element: Element, state: string): { matches: boolean; received: string };
8 utils: { getAriaRole(element: Element): string | null; getElementAccessibleNameText(element: Element, includeHidden: boolean): string };
9 }
10 }
11
11 lines TYPESCRIPT