UNPKG

testeranto

Version:

the AI powered BDD test framework for typescript projects

44 lines (43 loc) 1.88 kB
import { ScreencastOptions } from "puppeteer-core"; import { CdpPage } from "puppeteer-core/lib/esm/puppeteer"; import { ITLog, ITTestResourceConfiguration } from "../lib"; import { PM } from "."; type PuppetMasterServer = Record<string, Promise<any>>; export declare class PM_Pure extends PM { getInnerHtml(selector: string, page: string): Promise<string>; stopSideCar(uid: number): Promise<any>; server: PuppetMasterServer; testResourceConfiguration: ITTestResourceConfiguration; constructor(t: ITTestResourceConfiguration); protected trackCall(method: string, args: any): void; start(): Promise<void>; stop(): Promise<void>; createWriteStream(filepath: string, testName: string): Promise<string>; launchSideCar(n: number): Promise<[number, ITTestResourceConfiguration]>; pages(): any; waitForSelector(p: string, s: string): any; closePage(p: any): string; goto(cdpPage: CdpPage, url: string): any; newPage(): any; $(selector: string): boolean; isDisabled(selector: string): Promise<boolean>; getAttribute(selector: string, attribute: string): any; getValue(selector: string): any; focusOn(selector: string): any; typeInto(selector: string, value: string): any; page(): any; click(selector: string): string | undefined; screencast(opts: ScreencastOptions, page: string): any; screencastStop(p: string): any; customScreenShot(opts: { path: string; }, page?: string): any; existsSync(destFolder: string): Promise<boolean>; mkdirSync(): boolean; write(uid: number, contents: string): Promise<boolean>; writeFileSync(): Promise<boolean>; end(uid: number): any; customclose(): void; testArtiFactoryfileWriter(tLog: ITLog, callback: (promise: Promise<any>) => void): (fPath: string, value: string | Buffer | any) => void; } export {};