/
standard-caps.ts
65 lines (64 loc) · 1.88 KB
/
standard-caps.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
60
61
62
63
64
65
export type PageLoadingStrategy = 'none' | 'eager' | 'normal';
export type ProxyTypes = 'pac' | 'noproxy' | 'autodetect' | 'system' | 'manual';
export interface ProxyObject {
proxyType?: ProxyTypes;
proxyAutoconfigUrl?: string;
ftpProxy?: string;
ftpProxyPort?: number;
httpProxy?: string;
httpProxyPort?: number;
sslProxy?: string;
sslProxyPort?: number;
socksProxy?: string;
socksProxyPort?: number;
socksVersion?: string;
socksUsername?: string;
socksPassword?: string;
}
export type Timeouts = Record<'script' | 'pageLoad' | 'implicit', number>;
export interface StandardCapabilities {
/**
* Identifies the user agent.
*/
browserName?: string;
/**
* Identifies the version of the user agent.
*/
browserVersion?: string;
/**
* Identifies the operating system of the endpoint node.
*/
platformName?: string;
/**
* Indicates whether untrusted and self-signed TLS certificates are implicitly trusted on navigation for the duration of the session.
*/
acceptInsecureCerts?: boolean;
/**
* Defines the current session’s page load strategy.
*/
pageLoadStrategy?: PageLoadingStrategy;
/**
* Defines the current session’s proxy configuration.
*/
proxy?: ProxyObject;
/**
* Indicates whether the remote end supports all of the resizing and repositioning commands.
*/
setWindowRect?: boolean;
/**
* Describes the timeouts imposed on certain session operations.
*/
timeouts?: Timeouts;
/**
* Defines the current session’s strict file interactability.
*/
strictFileInteractability?: boolean;
/**
* Describes the current session’s user prompt handler. Defaults to the dismiss and notify state.
*/
unhandledPromptBehavior?: string;
/**
* WebDriver clients opt in to a bidirectional connection by requesting a capability with the name "webSocketUrl" and value true.
*/
webSocketUrl?: boolean;
}