Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/javascript/selenium-webdriver/private/bidi_enhancements_manifest.json
11813 views
1
{
2
"browser": {
3
"excludeTypes": [],
4
"excludeMethods": [],
5
"extraMethods": {},
6
"extraTypes": "/** @deprecated Use {@link Browser.create} instead — will be removed in a future major version. */\nexport async function getBrowserInstance(driver: unknown): Promise<Browser> {\n return Browser.create(driver)\n}\n"
7
},
8
"browsingContext": {
9
"excludeTypes": [],
10
"excludeMethods": [],
11
"extraMethods": {
12
"back": " async back(context: BrowsingContextBrowsingContext): Promise<void> {\n await this.traverseHistory({ context, delta: -1 })\n }",
13
"forward": " async forward(context: BrowsingContextBrowsingContext): Promise<void> {\n await this.traverseHistory({ context, delta: 1 })\n }",
14
"getTopLevelContexts": " async getTopLevelContexts(): Promise<BrowsingContextGetTreeResult> {\n return this.getTree({})\n }",
15
"printPage": " async printPage(params: BrowsingContextPrintParameters): Promise<BrowsingContextPrintResult> {\n return this.print(params)\n }"
16
},
17
"extraTypes": "/** @deprecated Use {@link BrowsingContext.create} instead — will be removed in a future major version. */\nexport async function getBrowsingContextInstance(driver: unknown): Promise<BrowsingContext> {\n return BrowsingContext.create(driver)\n}\n"
18
},
19
"emulation": {
20
"excludeTypes": [],
21
"excludeMethods": [],
22
"extraMethods": {},
23
"extraTypes": ""
24
},
25
"input": {
26
"excludeTypes": [],
27
"excludeMethods": [],
28
"extraMethods": {
29
"perform": " /** @deprecated Use {@link performActions} instead — will be removed in a future major version. */\n async perform(browsingContextId: string, actions: InputSourceActions[]): Promise<void> {\n await this.performActions({ context: browsingContextId, actions })\n }",
30
"release": " /** @deprecated Use {@link releaseActions} instead — will be removed in a future major version. */\n async release(browsingContextId: string): Promise<void> {\n await this.releaseActions({ context: browsingContextId })\n }"
31
},
32
"extraTypes": "/** @deprecated Use {@link Input.create} instead — will be removed in a future major version. */\nexport async function getInputInstance(driver: unknown): Promise<Input> {\n return Input.create(driver)\n}\n"
33
},
34
"log": {
35
"excludeTypes": [],
36
"excludeMethods": [],
37
"extraMethods": {
38
"onConsoleEntry": " async onConsoleEntry(callback: (params: LogEntry) => void): Promise<void> {\n await this.onEntryAdded((entry) => {\n if (entry.type === 'console') callback(entry)\n })\n }",
39
"onJavascriptLog": " async onJavascriptLog(callback: (params: LogEntry) => void): Promise<void> {\n await this.onEntryAdded((entry) => {\n if (entry.type === 'javascript') callback(entry)\n })\n }",
40
"onJavascriptException": " async onJavascriptException(callback: (params: LogEntry) => void): Promise<void> {\n await this.onEntryAdded((entry) => {\n if (entry.type === 'javascript' && entry.level === 'error') callback(entry)\n })\n }",
41
"onLog": " async onLog(callback: (params: LogEntry) => void): Promise<void> {\n await this.onEntryAdded(callback)\n }"
42
},
43
"extraTypes": "/** @deprecated Use {@link Log.create} instead — will be removed in a future major version. */\nexport async function getLogInspectorInstance(driver: unknown): Promise<Log> {\n return Log.create(driver)\n}\n"
44
},
45
"network": {
46
"excludeTypes": [],
47
"excludeMethods": [],
48
"extraMethods": {
49
"cancelAuth": " async cancelAuth(requestId: NetworkRequest): Promise<void> {\n await this.continueWithAuth({ request: requestId, action: 'cancel' } as NetworkContinueWithAuthParameters)\n }",
50
"continueWithAuthNoCredentials": " async continueWithAuthNoCredentials(requestId: NetworkRequest): Promise<void> {\n await this.continueWithAuth({ request: requestId, action: 'default' } as NetworkContinueWithAuthParameters)\n }",
51
"continueWithAuth": " async continueWithAuth(params: NetworkContinueWithAuthParameters): Promise<void>\n /** @deprecated Pass a NetworkContinueWithAuthParameters object instead — will be removed in a future major version. */\n async continueWithAuth(requestId: NetworkRequest, username: string, password: string): Promise<void>\n async continueWithAuth(\n paramsOrRequestId: NetworkContinueWithAuthParameters | NetworkRequest,\n username?: string,\n password?: string,\n ): Promise<void> {\n let params: NetworkContinueWithAuthParameters\n if (typeof paramsOrRequestId === 'string') {\n if (username === undefined || password === undefined) {\n throw new Error('username and password are required when calling continueWithAuth with a request id')\n }\n params = {\n request: paramsOrRequestId,\n action: 'provideCredentials',\n credentials: { type: 'password', username, password },\n } as NetworkContinueWithAuthParameters\n } else {\n params = paramsOrRequestId as NetworkContinueWithAuthParameters\n }\n const response = await this.bidi.send({\n method: 'network.continueWithAuth',\n params: params as unknown as Record<string, unknown>,\n }) as Record<string, unknown>\n if (response['type'] === 'error') {\n throw new Error(`${response['error']}: ${response['message']}`)\n }\n }",
52
"beforeRequestSent": " /** @deprecated Use {@link onBeforeRequestSent} instead — will be removed in a future major version. */\n async beforeRequestSent(callback: (params: NetworkBeforeRequestSentParameters) => void): Promise<void> {\n await this.onBeforeRequestSent(callback)\n }",
53
"authRequired": " /** @deprecated Use {@link onAuthRequired} instead — will be removed in a future major version. */\n async authRequired(callback: (params: NetworkAuthRequiredParameters) => void): Promise<void> {\n await this.onAuthRequired(callback)\n }",
54
"fetchError": " /** @deprecated Use {@link onFetchError} instead — will be removed in a future major version. */\n async fetchError(callback: (params: NetworkFetchErrorParameters) => void): Promise<void> {\n await this.onFetchError(callback)\n }",
55
"responseCompleted": " /** @deprecated Use {@link onResponseCompleted} instead — will be removed in a future major version. */\n async responseCompleted(callback: (params: NetworkResponseCompletedParameters) => void): Promise<void> {\n await this.onResponseCompleted(callback)\n }",
56
"responseStarted": " /** @deprecated Use {@link onResponseStarted} instead — will be removed in a future major version. */\n async responseStarted(callback: (params: NetworkResponseStartedParameters) => void): Promise<void> {\n await this.onResponseStarted(callback)\n }"
57
},
58
"extraTypes": "/** @deprecated Use {@link Network.create} instead — will be removed in a future major version. */\nexport async function getNetworkInstance(driver: unknown): Promise<Network> {\n return Network.create(driver)\n}\n"
59
},
60
"permissions": {
61
"excludeTypes": [],
62
"excludeMethods": [],
63
"extraMethods": {},
64
"extraTypes": ""
65
},
66
"script": {
67
"excludeTypes": [],
68
"excludeMethods": [],
69
"extraMethods": {
70
"getAllRealms": " async getAllRealms(): Promise<ScriptGetRealmsResult> {\n return this.getRealms({})\n }",
71
"getRealmsByType": " async getRealmsByType(type: ScriptRealmType): Promise<ScriptGetRealmsResult> {\n return this.getRealms({ type })\n }",
72
"getRealmsInBrowsingContext": " async getRealmsInBrowsingContext(context: BrowsingContextBrowsingContext): Promise<ScriptGetRealmsResult> {\n return this.getRealms({ context })\n }",
73
"getRealmsInBrowsingContextByType": " async getRealmsInBrowsingContextByType(context: BrowsingContextBrowsingContext, type: ScriptRealmType): Promise<ScriptGetRealmsResult> {\n return this.getRealms({ context, type })\n }",
74
"callFunctionInRealm": " async callFunctionInRealm(realmId: ScriptRealm, functionDeclaration: string, awaitPromise: boolean, args?: ScriptLocalValue[], resultOwnership?: ScriptResultOwnership, serializationOptions?: ScriptSerializationOptions, userActivation?: boolean): Promise<ScriptEvaluateResult> {\n return this.callFunction({ functionDeclaration, awaitPromise, target: { realm: realmId }, arguments: args, resultOwnership, serializationOptions, userActivation })\n }",
75
"callFunctionInBrowsingContext": " async callFunctionInBrowsingContext(browsingContextId: BrowsingContextBrowsingContext, functionDeclaration: string, awaitPromise: boolean, args?: ScriptLocalValue[], sandbox?: string, resultOwnership?: ScriptResultOwnership, serializationOptions?: ScriptSerializationOptions, userActivation?: boolean): Promise<ScriptEvaluateResult> {\n return this.callFunction({ functionDeclaration, awaitPromise, target: { context: browsingContextId, sandbox }, arguments: args, resultOwnership, serializationOptions, userActivation })\n }",
76
"evaluateFunctionInRealm": " async evaluateFunctionInRealm(realmId: ScriptRealm, expression: string, awaitPromise: boolean, resultOwnership?: ScriptResultOwnership, serializationOptions?: ScriptSerializationOptions, userActivation?: boolean): Promise<ScriptEvaluateResult> {\n return this.evaluate({ expression, awaitPromise, target: { realm: realmId }, resultOwnership, serializationOptions, userActivation })\n }",
77
"evaluateFunctionInBrowsingContext": " async evaluateFunctionInBrowsingContext(browsingContextId: BrowsingContextBrowsingContext, expression: string, awaitPromise: boolean, sandbox?: string, resultOwnership?: ScriptResultOwnership, serializationOptions?: ScriptSerializationOptions, userActivation?: boolean): Promise<ScriptEvaluateResult> {\n return this.evaluate({ expression, awaitPromise, target: { context: browsingContextId, sandbox }, resultOwnership, serializationOptions, userActivation })\n }",
78
"disownRealmScript": " async disownRealmScript(realmId: ScriptRealm, handles: ScriptHandle[]): Promise<void> {\n await this.disown({ handles, target: { realm: realmId } })\n }",
79
"disownBrowsingContextScript": " async disownBrowsingContextScript(browsingContextId: BrowsingContextBrowsingContext, handles: ScriptHandle[], sandbox?: string): Promise<void> {\n await this.disown({ handles, target: { context: browsingContextId, sandbox } })\n }"
80
},
81
"extraTypes": "/** @deprecated Use {@link Script.create} instead — will be removed in a future major version. */\nexport async function getScriptManagerInstance(driver: unknown): Promise<Script> {\n return Script.create(driver)\n}\n"
82
},
83
"session": {
84
"excludeTypes": [],
85
"excludeMethods": [],
86
"extraMethods": {},
87
"extraTypes": ""
88
},
89
"speculation": {
90
"excludeTypes": [],
91
"excludeMethods": [],
92
"extraMethods": {},
93
"extraTypes": ""
94
},
95
"storage": {
96
"excludeTypes": [],
97
"excludeMethods": [],
98
"extraMethods": {},
99
"extraTypes": "/** @deprecated Use {@link Storage.create} instead — will be removed in a future major version. */\nexport async function getStorageInstance(driver: unknown): Promise<Storage> {\n return Storage.create(driver)\n}\n"
100
},
101
"userAgentClientHints": {
102
"excludeTypes": [],
103
"excludeMethods": [],
104
"extraMethods": {},
105
"extraTypes": ""
106
},
107
"webExtension": {
108
"excludeTypes": [],
109
"excludeMethods": [],
110
"extraMethods": {},
111
"extraTypes": ""
112
},
113
"bluetooth": {
114
"excludeTypes": [],
115
"excludeMethods": [],
116
"extraMethods": {},
117
"extraTypes": ""
118
},
119
"common": {
120
"excludeTypes": [],
121
"extraTypes": ""
122
}
123
}
124
125