Path: blob/trunk/javascript/selenium-webdriver/private/bidi_enhancements_manifest.json
11813 views
{1"browser": {2"excludeTypes": [],3"excludeMethods": [],4"extraMethods": {},5"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"6},7"browsingContext": {8"excludeTypes": [],9"excludeMethods": [],10"extraMethods": {11"back": " async back(context: BrowsingContextBrowsingContext): Promise<void> {\n await this.traverseHistory({ context, delta: -1 })\n }",12"forward": " async forward(context: BrowsingContextBrowsingContext): Promise<void> {\n await this.traverseHistory({ context, delta: 1 })\n }",13"getTopLevelContexts": " async getTopLevelContexts(): Promise<BrowsingContextGetTreeResult> {\n return this.getTree({})\n }",14"printPage": " async printPage(params: BrowsingContextPrintParameters): Promise<BrowsingContextPrintResult> {\n return this.print(params)\n }"15},16"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"17},18"emulation": {19"excludeTypes": [],20"excludeMethods": [],21"extraMethods": {},22"extraTypes": ""23},24"input": {25"excludeTypes": [],26"excludeMethods": [],27"extraMethods": {28"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 }",29"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 }"30},31"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"32},33"log": {34"excludeTypes": [],35"excludeMethods": [],36"extraMethods": {37"onConsoleEntry": " async onConsoleEntry(callback: (params: LogEntry) => void): Promise<void> {\n await this.onEntryAdded((entry) => {\n if (entry.type === 'console') callback(entry)\n })\n }",38"onJavascriptLog": " async onJavascriptLog(callback: (params: LogEntry) => void): Promise<void> {\n await this.onEntryAdded((entry) => {\n if (entry.type === 'javascript') callback(entry)\n })\n }",39"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 }",40"onLog": " async onLog(callback: (params: LogEntry) => void): Promise<void> {\n await this.onEntryAdded(callback)\n }"41},42"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"43},44"network": {45"excludeTypes": [],46"excludeMethods": [],47"extraMethods": {48"cancelAuth": " async cancelAuth(requestId: NetworkRequest): Promise<void> {\n await this.continueWithAuth({ request: requestId, action: 'cancel' } as NetworkContinueWithAuthParameters)\n }",49"continueWithAuthNoCredentials": " async continueWithAuthNoCredentials(requestId: NetworkRequest): Promise<void> {\n await this.continueWithAuth({ request: requestId, action: 'default' } as NetworkContinueWithAuthParameters)\n }",50"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 }",51"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 }",52"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 }",53"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 }",54"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 }",55"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 }"56},57"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"58},59"permissions": {60"excludeTypes": [],61"excludeMethods": [],62"extraMethods": {},63"extraTypes": ""64},65"script": {66"excludeTypes": [],67"excludeMethods": [],68"extraMethods": {69"getAllRealms": " async getAllRealms(): Promise<ScriptGetRealmsResult> {\n return this.getRealms({})\n }",70"getRealmsByType": " async getRealmsByType(type: ScriptRealmType): Promise<ScriptGetRealmsResult> {\n return this.getRealms({ type })\n }",71"getRealmsInBrowsingContext": " async getRealmsInBrowsingContext(context: BrowsingContextBrowsingContext): Promise<ScriptGetRealmsResult> {\n return this.getRealms({ context })\n }",72"getRealmsInBrowsingContextByType": " async getRealmsInBrowsingContextByType(context: BrowsingContextBrowsingContext, type: ScriptRealmType): Promise<ScriptGetRealmsResult> {\n return this.getRealms({ context, type })\n }",73"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 }",74"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 }",75"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 }",76"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 }",77"disownRealmScript": " async disownRealmScript(realmId: ScriptRealm, handles: ScriptHandle[]): Promise<void> {\n await this.disown({ handles, target: { realm: realmId } })\n }",78"disownBrowsingContextScript": " async disownBrowsingContextScript(browsingContextId: BrowsingContextBrowsingContext, handles: ScriptHandle[], sandbox?: string): Promise<void> {\n await this.disown({ handles, target: { context: browsingContextId, sandbox } })\n }"79},80"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"81},82"session": {83"excludeTypes": [],84"excludeMethods": [],85"extraMethods": {},86"extraTypes": ""87},88"speculation": {89"excludeTypes": [],90"excludeMethods": [],91"extraMethods": {},92"extraTypes": ""93},94"storage": {95"excludeTypes": [],96"excludeMethods": [],97"extraMethods": {},98"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"99},100"userAgentClientHints": {101"excludeTypes": [],102"excludeMethods": [],103"extraMethods": {},104"extraTypes": ""105},106"webExtension": {107"excludeTypes": [],108"excludeMethods": [],109"extraMethods": {},110"extraTypes": ""111},112"bluetooth": {113"excludeTypes": [],114"excludeMethods": [],115"extraMethods": {},116"extraTypes": ""117},118"common": {119"excludeTypes": [],120"extraTypes": ""121}122}123124125