@wdio/protocols
Advanced tools
Comparing version 8.32.0 to 8.38.0
@@ -14,2 +14,26 @@ import type { ProtocolCommandResponse } from '../types.js'; | ||
* | ||
* List files from remote machine available for download. | ||
* @ref https://www.seleniumhq.org/ | ||
* | ||
*/ | ||
getDownloadableFiles(): Promise<ProtocolCommandResponse>; | ||
/** | ||
* Selenium Protocol Command | ||
* | ||
* Download a file from remote machine on which the browser is running. | ||
* @ref https://www.seleniumhq.org/ | ||
* | ||
*/ | ||
download(name: string): Promise<ProtocolCommandResponse>; | ||
/** | ||
* Selenium Protocol Command | ||
* | ||
* Remove all downloadable files from remote machine on which the browser is running. | ||
* @ref https://www.seleniumhq.org/ | ||
* | ||
*/ | ||
deleteDownloadableFiles(): Promise<void>; | ||
/** | ||
* Selenium Protocol Command | ||
* | ||
* Receive hub config remotely. | ||
@@ -16,0 +40,0 @@ * @ref https://github.com/nicegraham/selenium-grid2-api#gridapihub |
@@ -1,2 +0,2 @@ | ||
import type { SessionReturn, DeleteSessionOpts, StatusReturn, Timeouts, WindowHandle, RectReturn, ElementReference, ShadowElementReference, Cookie, ProtocolCommandResponse } from '../types.js'; | ||
import type { SessionReturn, DeleteSessionOpts, StatusReturn, Timeouts, WindowHandle, RectReturn, ElementReference, ShadowElementReference, Cookie, ProtocolCommandResponse, Credential } from '../types.js'; | ||
export default interface WebdriverCommands { | ||
@@ -577,3 +577,3 @@ /** | ||
*/ | ||
addVirtualAuthenticator(protocol?: string, transport?: string, hasResidentKey?: boolean, hasUserVerification?: boolean, isUserConsenting?: boolean, isUserVerified?: boolean, extensions?: string[], uvm?: object[]): Promise<void>; | ||
addVirtualAuthenticator(protocol?: string, transport?: string, hasResidentKey?: boolean, hasUserVerification?: boolean, isUserConsenting?: boolean, isUserVerified?: boolean, extensions?: string[], uvm?: object[]): Promise<string>; | ||
/** | ||
@@ -594,3 +594,3 @@ * Webdriver Protocol Command | ||
*/ | ||
addCredential(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, largeBlob: string): Promise<void>; | ||
addCredential(authenticatorId: string, credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, largeBlob?: string): Promise<void>; | ||
/** | ||
@@ -603,3 +603,3 @@ * Webdriver Protocol Command | ||
*/ | ||
getCredentials(authenticatorId: string): Promise<void>; | ||
getCredentials(authenticatorId: string): Promise<Credential[]>; | ||
/** | ||
@@ -628,4 +628,4 @@ * Webdriver Protocol Command | ||
*/ | ||
setUserVerified(authenticatorId: string, credentialId: string): Promise<void>; | ||
setUserVerified(authenticatorId: string): Promise<void>; | ||
} | ||
//# sourceMappingURL=webdriver.d.ts.map |
@@ -20,2 +20,37 @@ declare const _default: { | ||
}; | ||
'/session/:sessionId/se/files': { | ||
GET: { | ||
command: string; | ||
description: string; | ||
ref: string; | ||
parameters: never[]; | ||
returns: { | ||
type: string; | ||
name: string; | ||
description: string; | ||
}; | ||
}; | ||
POST: { | ||
command: string; | ||
description: string; | ||
ref: string; | ||
parameters: { | ||
name: string; | ||
type: string; | ||
description: string; | ||
required: boolean; | ||
}[]; | ||
returns: { | ||
type: string; | ||
name: string; | ||
description: string; | ||
}; | ||
}; | ||
DELETE: { | ||
command: string; | ||
description: string; | ||
ref: string; | ||
parameters: never[]; | ||
}; | ||
}; | ||
'/grid/api/hub/': { | ||
@@ -22,0 +57,0 @@ GET: { |
@@ -22,2 +22,39 @@ export default { | ||
}, | ||
'/session/:sessionId/se/files': { | ||
GET: { | ||
command: 'getDownloadableFiles', | ||
description: 'List files from remote machine available for download.', | ||
ref: 'https://www.seleniumhq.org/', | ||
parameters: [], | ||
returns: { | ||
type: 'Object', | ||
name: 'names', | ||
description: 'Object containing a list of downloadable files on remote machine.', | ||
}, | ||
}, | ||
POST: { | ||
command: 'download', | ||
description: 'Download a file from remote machine on which the browser is running.', | ||
ref: 'https://www.seleniumhq.org/', | ||
parameters: [ | ||
{ | ||
name: 'name', | ||
type: 'string', | ||
description: 'Name of the file to be downloaded', | ||
required: true, | ||
}, | ||
], | ||
returns: { | ||
type: 'Object', | ||
name: 'data', | ||
description: 'Object containing downloaded file name and its content', | ||
}, | ||
}, | ||
DELETE: { | ||
command: 'deleteDownloadableFiles', | ||
description: 'Remove all downloadable files from remote machine on which the browser is running.', | ||
ref: 'https://www.seleniumhq.org/', | ||
parameters: [], | ||
}, | ||
}, | ||
'/grid/api/hub/': { | ||
@@ -24,0 +61,0 @@ GET: { |
@@ -1081,2 +1081,7 @@ declare const _default: { | ||
}[]; | ||
returns: { | ||
type: string; | ||
name: string; | ||
description: string; | ||
}; | ||
}; | ||
@@ -1101,2 +1106,6 @@ }; | ||
ref: string; | ||
variables: { | ||
name: string; | ||
description: string; | ||
}[]; | ||
parameters: { | ||
@@ -1120,2 +1129,7 @@ name: string; | ||
parameters: never[]; | ||
returns: { | ||
type: string; | ||
name: string; | ||
description: string; | ||
}; | ||
}; | ||
@@ -1145,3 +1159,3 @@ DELETE: { | ||
}; | ||
'/session/:sessionId/webauthn/authenticator/:authenticatorId/credentials/:credentialId/uv': { | ||
'/session/:sessionId/webauthn/authenticator/:authenticatorId/uv': { | ||
POST: { | ||
@@ -1148,0 +1162,0 @@ command: string; |
@@ -18,2 +18,10 @@ export interface ProtocolCommandResponse { | ||
} | ||
export interface Credential { | ||
credentialId: string; | ||
isResidentCredential: boolean; | ||
rpId: string; | ||
privateKey: string; | ||
userHandle: string; | ||
signCount: number; | ||
} | ||
export interface RectReturn { | ||
@@ -20,0 +28,0 @@ x: number; |
{ | ||
"name": "@wdio/protocols", | ||
"version": "8.32.0", | ||
"version": "8.38.0", | ||
"description": "Utility package providing information about automation protocols", | ||
@@ -30,3 +30,3 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
}, | ||
"gitHead": "912ff55c216bbcd99ab5b376246cdd04e52dc099" | ||
"gitHead": "b8ebe679c772a858709164896c6b5ea86a42b146" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
603005
14695