UNPKG

testeranto

Version:

the AI powered BDD test framework for typescript projects

41 lines (40 loc) 2 kB
import net from "net"; import { ScreencastOptions, ScreenshotOptions } from "puppeteer-core"; import { PassThrough } from "stream"; import { ITLog, ITTestResourceConfiguration } from "../lib"; import { PM } from "."; export declare class PM_Node extends PM { testResourceConfiguration: ITTestResourceConfiguration; client: net.Socket; constructor(t: ITTestResourceConfiguration, ipcFile: string); start(): Promise<void>; stop(): Promise<void>; send<I>(command: string, ...argz: any[]): Promise<I>; launchSideCar(n: number): Promise<[number, ITTestResourceConfiguration]>; stopSideCar(n: number): Promise<any>; pages(): Promise<string[]>; waitForSelector(p: string, s: string): any; closePage(p: any): Promise<unknown>; goto(page: string, url: string): Promise<unknown>; newPage(): Promise<string>; $(selector: string, page: string): Promise<unknown>; isDisabled(selector: string): Promise<boolean>; getAttribute(selector: string, attribute: string, p: string): Promise<unknown>; getInnerHtml(selector: string, p: string): Promise<unknown>; focusOn(selector: string): Promise<unknown>; typeInto(selector: string): Promise<unknown>; page(): Promise<string | undefined>; click(selector: string): Promise<unknown>; screencast(opts: ScreencastOptions, page: string): Promise<unknown>; screencastStop(p: string): Promise<unknown>; customScreenShot(x: ScreenshotOptions, y?: string): Promise<unknown>; existsSync(destFolder: string): Promise<boolean>; mkdirSync(): Promise<unknown>; write(uid: number, contents: string): Promise<boolean>; writeFileSync(x: any): Promise<boolean>; createWriteStream(filepath: string): Promise<string>; end(uid: any): Promise<boolean>; customclose(): Promise<unknown>; testArtiFactoryfileWriter(tLog: ITLog, callback: (p: Promise<void>) => void): (fPath: string, value: string | Buffer | PassThrough) => void; startPuppeteer(options?: any): any; }