-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
59 lines (44 loc) · 1.6 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import { Page } from 'puppeteer-core/lib/esm/puppeteer/common/Page'
export function setLogLevel( l: 0 | 1 | 2 | 3 )
export function getLogLevel(): 0 | 1 | 2 | 3
export function warn(message: any, ex?: any): any
export function log(message: any, ex?: any): any
export function info(message: any, ex?: any): any
export function error(message: any, ex?: any): any
export function debug(message: any, ex?: any): any
export function getConfiguration(): any
export function addUserAgent(page: Page, userAgentString: string): Promise<void>
export function executeHttpStep(stepName: string | null, requestOptions?: any, callback?: any, stepConfig?: any): Promise<void>;
export function executeStep(stepName : null | string, functionToExecute: Function): Promise<void>
export function getPage(): Promise<Page>
/**
* @description not implement yet
*/
export function getRequestResponseLogHelper(): RequestResponseLogHelper
/**
* @description not implement yet
* @param helper
*/
export function setRequestResponseLogHelper(helper: RequestResponseLogHelper)
/**
* @description not implement yet
*/
export class RequestResponseLogHelper {
}
/**
* @description this function is only supported after `syn-nodejs-2.0-beta`
* @param stepName
* @param suffix
*/
export function takeScreenshot(stepName: string, suffix: string): Promise<void>
/**
* @function start
* @description this function is not export by Synthetics
* @param headlessMode
* @param screenshotDir
*/
export function start(headlessMode: boolean, screenshotDir: string)
/**
* @description this function is not export by Synthetics
*/
export function close()