testeranto
Version:
the AI powered BDD test framework for typescript projects
39 lines (38 loc) • 1.88 kB
TypeScript
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>;
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;
}