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