webdriver
- Version 9.21.0
- Published
- 354 kB
- 11 dependencies
- MIT license
Install
npm i webdriveryarn add webdriverpnpm add webdriverOverview
A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol
Index
Variables
Functions
Classes
BidiHandler
- browserClose()
- browserCreateUserContext()
- browserGetClientWindows()
- browserGetUserContexts()
- browserRemoveUserContext()
- browserSetClientWindowState()
- browsingContextActivate()
- browsingContextCaptureScreenshot()
- browsingContextClose()
- browsingContextCreate()
- browsingContextGetTree()
- browsingContextHandleUserPrompt()
- browsingContextLocateNodes()
- browsingContextNavigate()
- browsingContextPrint()
- browsingContextReload()
- browsingContextSetViewport()
- browsingContextTraverseHistory()
- emulationSetGeolocationOverride()
- inputPerformActions()
- inputReleaseActions()
- inputSetFiles()
- networkAddIntercept()
- networkContinueRequest()
- networkContinueResponse()
- networkContinueWithAuth()
- networkFailRequest()
- networkProvideResponse()
- networkRemoveIntercept()
- networkSetCacheBehavior()
- scriptAddPreloadScript()
- scriptCallFunction()
- scriptDisown()
- scriptEvaluate()
- scriptGetRealms()
- scriptRemovePreloadScript()
- sessionEnd()
- sessionNew()
- sessionStatus()
- sessionSubscribe()
- sessionUnsubscribe()
- storageDeleteCookies()
- storageGetCookies()
- storageSetCookie()
- webExtensionInstall()
- webExtensionUninstall()
Interfaces
Type Aliases
Namespaces
local
- BrowserClientWindow
- BrowserClientWindowInfo
- BrowserCreateUserContextResult
- BrowserGetClientWindowsResult
- BrowserGetUserContextsResult
- BrowserResult
- BrowserUserContext
- BrowserUserContextInfo
- BrowsingContextAccessibilityLocator
- BrowsingContextBaseNavigationInfo
- BrowsingContextBrowsingContext
- BrowsingContextCaptureScreenshotResult
- BrowsingContextContextCreated
- BrowsingContextContextDestroyed
- BrowsingContextContextLocator
- BrowsingContextCreateResult
- BrowsingContextCssLocator
- BrowsingContextDomContentLoaded
- BrowsingContextDownloadWillBegin
- BrowsingContextDownloadWillBeginParams
- BrowsingContextEvent
- BrowsingContextFragmentNavigated
- BrowsingContextGetTreeResult
- BrowsingContextHistoryUpdated
- BrowsingContextHistoryUpdatedParameters
- BrowsingContextInfo
- BrowsingContextInfoList
- BrowsingContextInnerTextLocator
- BrowsingContextLoad
- BrowsingContextLocateNodesResult
- BrowsingContextLocator
- BrowsingContextNavigateResult
- BrowsingContextNavigation
- BrowsingContextNavigationAborted
- BrowsingContextNavigationCommitted
- BrowsingContextNavigationFailed
- BrowsingContextNavigationInfo
- BrowsingContextNavigationStarted
- BrowsingContextPrintResult
- BrowsingContextResult
- BrowsingContextTraverseHistoryResult
- BrowsingContextUserPromptClosed
- BrowsingContextUserPromptClosedParameters
- BrowsingContextUserPromptOpened
- BrowsingContextUserPromptOpenedParameters
- BrowsingContextUserPromptType
- BrowsingContextXPathLocator
- CommandResponse
- EmptyResult
- ErrorCode
- ErrorResponse
- Event
- EventData
- Extensible
- InputEvent
- InputFileDialogInfo
- InputFileDialogOpened
- JsInt
- JsUint
- LogBaseLogEntry
- LogConsoleLogEntry
- LogEntry
- LogEntryAdded
- LogEvent
- LogGenericLogEntry
- LogJavascriptLogEntry
- LogLevel
- Message
- NetworkAddInterceptResult
- NetworkAuthChallenge
- NetworkAuthRequired
- NetworkAuthRequiredParameters
- NetworkBase64Value
- NetworkBaseParameters
- NetworkBeforeRequestSent
- NetworkBeforeRequestSentParameters
- NetworkBytesValue
- NetworkCookie
- NetworkEvent
- NetworkFetchError
- NetworkFetchErrorParameters
- NetworkFetchTimingInfo
- NetworkHeader
- NetworkInitiator
- NetworkIntercept
- NetworkRequest
- NetworkRequestData
- NetworkResponseCompleted
- NetworkResponseCompletedParameters
- NetworkResponseContent
- NetworkResponseData
- NetworkResponseStarted
- NetworkResponseStartedParameters
- NetworkResult
- NetworkSameSite
- NetworkStringValue
- ResultData
- ScriptAddPreloadScriptResult
- ScriptArrayBufferRemoteValue
- ScriptArrayLocalValue
- ScriptArrayRemoteValue
- ScriptAudioWorkletRealmInfo
- ScriptBaseRealmInfo
- ScriptBigIntValue
- ScriptBooleanValue
- ScriptChannel
- ScriptChannelProperties
- ScriptChannelValue
- ScriptDateLocalValue
- ScriptDateLocalValueMap
- ScriptDateRemoteValue
- ScriptDedicatedWorkerRealmInfo
- ScriptErrorRemoteValue
- ScriptEvaluateResult
- ScriptEvaluateResultException
- ScriptEvaluateResultSuccess
- ScriptEvent
- ScriptExceptionDetails
- ScriptFunctionRemoteValue
- ScriptGeneratorRemoteValue
- ScriptGetRealmsResult
- ScriptHandle
- ScriptHtmlCollectionRemoteValue
- ScriptInternalId
- ScriptListLocalValue
- ScriptListRemoteValue
- ScriptLocalValue
- ScriptMapLocalValue
- ScriptMappingLocalValue
- ScriptMappingRemoteValue
- ScriptMapRemoteValue
- ScriptMessage
- ScriptMessageParameters
- ScriptNodeListRemoteValue
- ScriptNodeProperties
- ScriptNodeRemoteValue
- ScriptNullValue
- ScriptNumberValue
- ScriptObjectLocalValue
- ScriptObjectRemoteValue
- ScriptPaintWorkletRealmInfo
- ScriptPreloadScript
- ScriptPrimitiveProtocolValue
- ScriptPromiseRemoteValue
- ScriptProxyRemoteValue
- ScriptRealm
- ScriptRealmCreated
- ScriptRealmDestroyed
- ScriptRealmDestroyedParameters
- ScriptRealmInfo
- ScriptRealmType
- ScriptRegExpLocalValue
- ScriptRegExpLocalValueMap
- ScriptRegExpRemoteValue
- ScriptRegExpValue
- ScriptRemoteObjectReference
- ScriptRemoteReference
- ScriptRemoteValue
- ScriptResult
- ScriptResultOwnership
- ScriptSerializationOptions
- ScriptServiceWorkerRealmInfo
- ScriptSetLocalValue
- ScriptSetRemoteValue
- ScriptSharedId
- ScriptSharedReference
- ScriptSharedWorkerRealmInfo
- ScriptSource
- ScriptSpecialNumber
- ScriptStackFrame
- ScriptStackTrace
- ScriptStringValue
- ScriptSymbolRemoteValue
- ScriptTypedArrayRemoteValue
- ScriptUndefinedValue
- ScriptWeakMapRemoteValue
- ScriptWeakSetRemoteValue
- ScriptWindowProxyProperties
- ScriptWindowProxyRemoteValue
- ScriptWindowRealmInfo
- ScriptWorkerRealmInfo
- ScriptWorkletRealmInfo
- SessionAutodetectProxyConfiguration
- SessionCapabilitiesRequest
- SessionCapabilityRequest
- SessionDirectProxyConfiguration
- SessionManualProxyConfiguration
- SessionNewResult
- SessionPacProxyConfiguration
- SessionProxyConfiguration
- SessionResult
- SessionSocksProxyConfiguration
- SessionStatusResult
- SessionSubscribeResult
- SessionSubscription
- SessionSystemProxyConfiguration
- SessionUserPromptHandler
- SessionUserPromptHandlerType
- StorageDeleteCookiesResult
- StorageGetCookiesResult
- StoragePartitionKey
- StorageResult
- StorageSetCookieResult
- WebExtensionExtension
- WebExtensionInstallResult
- WebExtensionResult
remote
- BrowserClientWindow
- BrowserClientWindowInfo
- BrowserClientWindowNamedState
- BrowserClientWindowRectState
- BrowserClose
- BrowserCommand
- BrowserCreateUserContext
- BrowserCreateUserContextParameters
- BrowserGetClientWindows
- BrowserGetUserContexts
- BrowserRemoveUserContext
- BrowserRemoveUserContextParameters
- BrowserSetClientWindowState
- BrowserSetClientWindowStateParameters
- BrowserUserContext
- BrowserUserContextInfo
- BrowsingContextAccessibilityLocator
- BrowsingContextActivate
- BrowsingContextActivateParameters
- BrowsingContextBoxClipRectangle
- BrowsingContextBrowsingContext
- BrowsingContextCaptureScreenshot
- BrowsingContextCaptureScreenshotParameters
- BrowsingContextClipRectangle
- BrowsingContextClose
- BrowsingContextCloseParameters
- BrowsingContextCommand
- BrowsingContextContextLocator
- BrowsingContextCreate
- BrowsingContextCreateParameters
- BrowsingContextCreateType
- BrowsingContextCssLocator
- BrowsingContextElementClipRectangle
- BrowsingContextGetTree
- BrowsingContextGetTreeParameters
- BrowsingContextHandleUserPrompt
- BrowsingContextHandleUserPromptParameters
- BrowsingContextImageFormat
- BrowsingContextInnerTextLocator
- BrowsingContextLocateNodes
- BrowsingContextLocateNodesParameters
- BrowsingContextLocator
- BrowsingContextNavigate
- BrowsingContextNavigateParameters
- BrowsingContextNavigation
- BrowsingContextPrint
- BrowsingContextPrintMarginParameters
- BrowsingContextPrintPageParameters
- BrowsingContextPrintParameters
- BrowsingContextReadinessState
- BrowsingContextReload
- BrowsingContextReloadParameters
- BrowsingContextSetViewport
- BrowsingContextSetViewportParameters
- BrowsingContextTraverseHistory
- BrowsingContextTraverseHistoryParameters
- BrowsingContextUserPromptType
- BrowsingContextViewport
- BrowsingContextXPathLocator
- Command
- CommandData
- EmptyParams
- EmulationCommand
- EmulationGeolocationCoordinates
- EmulationGeolocationPositionError
- EmulationGeolocationPositionUnavailableError
- EmulationSetGeolocationOverride
- EmulationSetGeolocationOverrideParameters
- EmulationSetGeolocationPosition
- Extensible
- InputCommand
- InputElementOrigin
- InputFileDialogInfo
- InputKeyDownAction
- InputKeySourceAction
- InputKeySourceActions
- InputKeyUpAction
- InputNoneSourceAction
- InputNoneSourceActions
- InputOrigin
- InputPauseAction
- InputPerformActions
- InputPerformActionsParameters
- InputPointerCommonProperties
- InputPointerDownAction
- InputPointerMoveAction
- InputPointerParameters
- InputPointerSourceAction
- InputPointerSourceActions
- InputPointerType
- InputPointerUpAction
- InputReleaseActions
- InputReleaseActionsParameters
- InputSetFiles
- InputSetFilesParameters
- InputSourceActions
- InputWheelScrollAction
- InputWheelSourceAction
- InputWheelSourceActions
- JsInt
- JsUint
- NetworkAddIntercept
- NetworkAddInterceptParameters
- NetworkAuthCredentials
- NetworkBase64Value
- NetworkBytesValue
- NetworkCommand
- NetworkContinueRequest
- NetworkContinueRequestParameters
- NetworkContinueResponse
- NetworkContinueResponseParameters
- NetworkContinueWithAuth
- NetworkContinueWithAuthCredentials
- NetworkContinueWithAuthNoCredentials
- NetworkContinueWithAuthParameters
- NetworkCookie
- NetworkCookieHeader
- NetworkFailRequest
- NetworkFailRequestParameters
- NetworkHeader
- NetworkIntercept
- NetworkInterceptPhase
- NetworkProvideResponse
- NetworkProvideResponseParameters
- NetworkRemoveIntercept
- NetworkRemoveInterceptParameters
- NetworkRequest
- NetworkSameSite
- NetworkSetCacheBehavior
- NetworkSetCacheBehaviorParameters
- NetworkSetCookieHeader
- NetworkStringValue
- NetworkUrlPattern
- NetworkUrlPatternPattern
- NetworkUrlPatternString
- ScriptAddPreloadScript
- ScriptAddPreloadScriptParameters
- ScriptArrayBufferRemoteValue
- ScriptArrayLocalValue
- ScriptArrayRemoteValue
- ScriptBigIntValue
- ScriptBooleanValue
- ScriptCallFunction
- ScriptCallFunctionParameters
- ScriptChannel
- ScriptChannelProperties
- ScriptChannelValue
- ScriptCommand
- ScriptContextTarget
- ScriptDateLocalValue
- ScriptDateLocalValueMap
- ScriptDateRemoteValue
- ScriptDisown
- ScriptDisownParameters
- ScriptErrorRemoteValue
- ScriptEvaluate
- ScriptEvaluateParameters
- ScriptEvaluateResult
- ScriptEvaluateResultException
- ScriptEvaluateResultSuccess
- ScriptExceptionDetails
- ScriptFunctionRemoteValue
- ScriptGeneratorRemoteValue
- ScriptGetRealms
- ScriptGetRealmsParameters
- ScriptHandle
- ScriptHtmlCollectionRemoteValue
- ScriptInternalId
- ScriptListLocalValue
- ScriptListRemoteValue
- ScriptLocalValue
- ScriptMapLocalValue
- ScriptMappingLocalValue
- ScriptMappingRemoteValue
- ScriptMapRemoteValue
- ScriptNodeListRemoteValue
- ScriptNodeProperties
- ScriptNodeRemoteValue
- ScriptNullValue
- ScriptNumberValue
- ScriptObjectLocalValue
- ScriptObjectRemoteValue
- ScriptPreloadScript
- ScriptPrimitiveProtocolValue
- ScriptPromiseRemoteValue
- ScriptProxyRemoteValue
- ScriptRealm
- ScriptRealmTarget
- ScriptRealmType
- ScriptRegExpLocalValue
- ScriptRegExpLocalValueMap
- ScriptRegExpRemoteValue
- ScriptRegExpValue
- ScriptRemoteObjectReference
- ScriptRemoteReference
- ScriptRemoteValue
- ScriptRemovePreloadScript
- ScriptRemovePreloadScriptParameters
- ScriptResultOwnership
- ScriptSerializationOptions
- ScriptSetLocalValue
- ScriptSetRemoteValue
- ScriptSharedId
- ScriptSharedReference
- ScriptSpecialNumber
- ScriptStackFrame
- ScriptStackTrace
- ScriptStringValue
- ScriptSymbolRemoteValue
- ScriptTarget
- ScriptTypedArrayRemoteValue
- ScriptUndefinedValue
- ScriptWeakMapRemoteValue
- ScriptWeakSetRemoteValue
- ScriptWindowProxyProperties
- ScriptWindowProxyRemoteValue
- SessionAutodetectProxyConfiguration
- SessionCapabilitiesRequest
- SessionCapabilityRequest
- SessionCommand
- SessionDirectProxyConfiguration
- SessionEnd
- SessionManualProxyConfiguration
- SessionNew
- SessionNewParameters
- SessionPacProxyConfiguration
- SessionProxyConfiguration
- SessionSocksProxyConfiguration
- SessionStatus
- SessionSubscribe
- SessionSubscription
- SessionSubscriptionRequest
- SessionSystemProxyConfiguration
- SessionUnsubscribe
- SessionUnsubscribeByAttributesRequest
- SessionUnsubscribeByIdRequest
- SessionUnsubscribeParameters
- SessionUserPromptHandler
- SessionUserPromptHandlerType
- StorageBrowsingContextPartitionDescriptor
- StorageCommand
- StorageCookieFilter
- StorageDeleteCookies
- StorageDeleteCookiesParameters
- StorageGetCookies
- StorageGetCookiesParameters
- StoragePartialCookie
- StoragePartitionDescriptor
- StoragePartitionKey
- StorageSetCookie
- StorageSetCookieParameters
- StorageStorageKeyPartitionDescriptor
- WebExtensionCommand
- WebExtensionExtension
- WebExtensionExtensionArchivePath
- WebExtensionExtensionBase64Encoded
- WebExtensionExtensionData
- WebExtensionExtensionPath
- WebExtensionInstall
- WebExtensionInstallParameters
- WebExtensionUninstall
- WebExtensionUninstallParameters
Variables
variable APPIUM_MASKING_HEADER
const APPIUM_MASKING_HEADER: { 'x-appium-is-sensitive': string };variable BASE_64_REGEX
const BASE_64_REGEX: RegExp;variable BASE_64_SAFE_STRING_TO_PROCESS_LENGTH
const BASE_64_SAFE_STRING_TO_PROCESS_LENGTH: number;variable DEFAULTS
const DEFAULTS: Options.Definition<Required<any>>;variable ELEMENT_KEY
const ELEMENT_KEY: string;variable SHADOW_ELEMENT_KEY
const SHADOW_ELEMENT_KEY: string;Functions
function command
command: ( method: string, endpointUri: string, commandInfo: CommandEndpoint, doubleEncodeVariables?: boolean) => ( this: BaseClient, ...unmaskedArgs: unknown[]) => Promise<WebDriverResponse | BidiResponses | void>;function getEnvironmentVars
getEnvironmentVars: ({ isW3C, isMobile, isIOS, isAndroid, isFirefox, isSauce, isSeleniumStandalone, isChromium, isWindowsApp, isMacApp,}: Partial<SessionFlags>) => PropertyDescriptorMap;return all supported flags and return them in a format so we can attach them to the instance protocol
Parameter options
driver instance or option object containing these flags {Object} prototype object
function getPrototype
getPrototype: ({ isW3C, isChromium, isFirefox, isMobile, isSauce, isSeleniumStandalone,}: Partial<SessionFlags>) => Record<string, PropertyDescriptor>;creates the base prototype for the webdriver monad
function initiateBidi
initiateBidi: ( socketUrl: string, strictSSL?: boolean, userHeaders?: Record<string, string>) => PropertyDescriptorMap;Enhance the monad with WebDriver Bidi primitives if a connection can be established successfully
Parameter socketUrl
url to bidi interface
Parameter strictSSL
Parameter userHeaders
Returns
prototype with interface for bidi primitives
function parseBidiMessage
parseBidiMessage: (this: EventEmitter, data: ArrayBuffer) => void;Classes
class BidiHandler
class BidiHandler extends BidiCore {}method browserClose
browserClose: (params: remote.EmptyParams) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "browser.close" with parameters. https://w3c.github.io/webdriver-bidi/#command-browser-close
Parameter params
remote.EmptyParamscommand parameterReturns
Promise<local.EmptyResult>
method browserCreateUserContext
browserCreateUserContext: ( params: remote.BrowserCreateUserContextParameters) => Promise<local.BrowserCreateUserContextResult>;WebDriver Bidi command to send command method "browser.createUserContext" with parameters. https://w3c.github.io/webdriver-bidi/#command-browser-createUserContext
Parameter params
remote.BrowserCreateUserContextParameterscommand parameterReturns
Promise<local.BrowserCreateUserContextResult>
method browserGetClientWindows
browserGetClientWindows: ( params: remote.EmptyParams) => Promise<local.BrowserGetClientWindowsResult>;WebDriver Bidi command to send command method "browser.getClientWindows" with parameters. https://w3c.github.io/webdriver-bidi/#command-browser-getClientWindows
Parameter params
remote.EmptyParamscommand parameterReturns
Promise<local.BrowserGetClientWindowsResult>
method browserGetUserContexts
browserGetUserContexts: ( params: remote.EmptyParams) => Promise<local.BrowserGetUserContextsResult>;WebDriver Bidi command to send command method "browser.getUserContexts" with parameters. https://w3c.github.io/webdriver-bidi/#command-browser-getUserContexts
Parameter params
remote.EmptyParamscommand parameterReturns
Promise<local.BrowserGetUserContextsResult>
method browserRemoveUserContext
browserRemoveUserContext: ( params: remote.BrowserRemoveUserContextParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "browser.removeUserContext" with parameters. https://w3c.github.io/webdriver-bidi/#command-browser-removeUserContext
Parameter params
remote.BrowserRemoveUserContextParameterscommand parameterReturns
Promise<local.EmptyResult>
method browserSetClientWindowState
browserSetClientWindowState: ( params: remote.BrowserSetClientWindowStateParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "browser.setClientWindowState" with parameters. https://w3c.github.io/webdriver-bidi/#command-browser-setClientWindowState
Parameter params
remote.BrowserSetClientWindowStateParameterscommand parameterReturns
Promise<local.EmptyResult>
method browsingContextActivate
browsingContextActivate: ( params: remote.BrowsingContextActivateParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "browsingContext.activate" with parameters. https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate
Parameter params
remote.BrowsingContextActivateParameterscommand parameterReturns
Promise<local.EmptyResult>
method browsingContextCaptureScreenshot
browsingContextCaptureScreenshot: ( params: remote.BrowsingContextCaptureScreenshotParameters) => Promise<local.BrowsingContextCaptureScreenshotResult>;WebDriver Bidi command to send command method "browsingContext.captureScreenshot" with parameters. https://w3c.github.io/webdriver-bidi/#command-browsingContext-captureScreenshot
Parameter params
remote.BrowsingContextCaptureScreenshotParameterscommand parameterReturns
Promise<local.BrowsingContextCaptureScreenshotResult>
method browsingContextClose
browsingContextClose: ( params: remote.BrowsingContextCloseParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "browsingContext.close" with parameters. https://w3c.github.io/webdriver-bidi/#command-browsingContext-close
Parameter params
remote.BrowsingContextCloseParameterscommand parameterReturns
Promise<local.EmptyResult>
method browsingContextCreate
browsingContextCreate: ( params: remote.BrowsingContextCreateParameters) => Promise<local.BrowsingContextCreateResult>;WebDriver Bidi command to send command method "browsingContext.create" with parameters. https://w3c.github.io/webdriver-bidi/#command-browsingContext-create
Parameter params
remote.BrowsingContextCreateParameterscommand parameterReturns
Promise<local.BrowsingContextCreateResult>
method browsingContextGetTree
browsingContextGetTree: ( params: remote.BrowsingContextGetTreeParameters) => Promise<local.BrowsingContextGetTreeResult>;WebDriver Bidi command to send command method "browsingContext.getTree" with parameters. https://w3c.github.io/webdriver-bidi/#command-browsingContext-getTree
Parameter params
remote.BrowsingContextGetTreeParameterscommand parameterReturns
Promise<local.BrowsingContextGetTreeResult>
method browsingContextHandleUserPrompt
browsingContextHandleUserPrompt: ( params: remote.BrowsingContextHandleUserPromptParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "browsingContext.handleUserPrompt" with parameters. https://w3c.github.io/webdriver-bidi/#command-browsingContext-handleUserPrompt
Parameter params
remote.BrowsingContextHandleUserPromptParameterscommand parameterReturns
Promise<local.EmptyResult>
method browsingContextLocateNodes
browsingContextLocateNodes: ( params: remote.BrowsingContextLocateNodesParameters) => Promise<local.BrowsingContextLocateNodesResult>;WebDriver Bidi command to send command method "browsingContext.locateNodes" with parameters. https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes
Parameter params
remote.BrowsingContextLocateNodesParameterscommand parameterReturns
Promise<local.BrowsingContextLocateNodesResult>
method browsingContextNavigate
browsingContextNavigate: ( params: remote.BrowsingContextNavigateParameters) => Promise<local.BrowsingContextNavigateResult>;WebDriver Bidi command to send command method "browsingContext.navigate" with parameters. https://w3c.github.io/webdriver-bidi/#command-browsingContext-navigate
Parameter params
remote.BrowsingContextNavigateParameterscommand parameterReturns
Promise<local.BrowsingContextNavigateResult>
method browsingContextPrint
browsingContextPrint: ( params: remote.BrowsingContextPrintParameters) => Promise<local.BrowsingContextPrintResult>;WebDriver Bidi command to send command method "browsingContext.print" with parameters. https://w3c.github.io/webdriver-bidi/#command-browsingContext-print
Parameter params
remote.BrowsingContextPrintParameterscommand parameterReturns
Promise<local.BrowsingContextPrintResult>
method browsingContextReload
browsingContextReload: ( params: remote.BrowsingContextReloadParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "browsingContext.reload" with parameters. https://w3c.github.io/webdriver-bidi/#command-browsingContext-reload
Parameter params
remote.BrowsingContextReloadParameterscommand parameterReturns
Promise<local.EmptyResult>
method browsingContextSetViewport
browsingContextSetViewport: ( params: remote.BrowsingContextSetViewportParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "browsingContext.setViewport" with parameters. https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport
Parameter params
remote.BrowsingContextSetViewportParameterscommand parameterReturns
Promise<local.EmptyResult>
method browsingContextTraverseHistory
browsingContextTraverseHistory: ( params: remote.BrowsingContextTraverseHistoryParameters) => Promise<local.BrowsingContextTraverseHistoryResult>;WebDriver Bidi command to send command method "browsingContext.traverseHistory" with parameters. https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory
Parameter params
remote.BrowsingContextTraverseHistoryParameterscommand parameterReturns
Promise<local.BrowsingContextTraverseHistoryResult>
method emulationSetGeolocationOverride
emulationSetGeolocationOverride: ( params: remote.EmulationSetGeolocationOverrideParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "emulation.setGeolocationOverride" with parameters. https://w3c.github.io/webdriver-bidi/#command-emulation-setGeolocationOverride
Parameter params
remote.EmulationSetGeolocationOverrideParameterscommand parameterReturns
Promise<local.EmptyResult>
method inputPerformActions
inputPerformActions: ( params: remote.InputPerformActionsParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "input.performActions" with parameters. https://w3c.github.io/webdriver-bidi/#command-input-performActions
Parameter params
remote.InputPerformActionsParameterscommand parameterReturns
Promise<local.EmptyResult>
method inputReleaseActions
inputReleaseActions: ( params: remote.InputReleaseActionsParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "input.releaseActions" with parameters. https://w3c.github.io/webdriver-bidi/#command-input-releaseActions
Parameter params
remote.InputReleaseActionsParameterscommand parameterReturns
Promise<local.EmptyResult>
method inputSetFiles
inputSetFiles: ( params: remote.InputSetFilesParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "input.setFiles" with parameters. https://w3c.github.io/webdriver-bidi/#command-input-setFiles
Parameter params
remote.InputSetFilesParameterscommand parameterReturns
Promise<local.EmptyResult>
method networkAddIntercept
networkAddIntercept: ( params: remote.NetworkAddInterceptParameters) => Promise<local.NetworkAddInterceptResult>;WebDriver Bidi command to send command method "network.addIntercept" with parameters. https://w3c.github.io/webdriver-bidi/#command-network-addIntercept
Parameter params
remote.NetworkAddInterceptParameterscommand parameterReturns
Promise<local.NetworkAddInterceptResult>
method networkContinueRequest
networkContinueRequest: ( params: remote.NetworkContinueRequestParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "network.continueRequest" with parameters. https://w3c.github.io/webdriver-bidi/#command-network-continueRequest
Parameter params
remote.NetworkContinueRequestParameterscommand parameterReturns
Promise<local.EmptyResult>
method networkContinueResponse
networkContinueResponse: ( params: remote.NetworkContinueResponseParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "network.continueResponse" with parameters. https://w3c.github.io/webdriver-bidi/#command-network-continueResponse
Parameter params
remote.NetworkContinueResponseParameterscommand parameterReturns
Promise<local.EmptyResult>
method networkContinueWithAuth
networkContinueWithAuth: ( params: remote.NetworkContinueWithAuthParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "network.continueWithAuth" with parameters. https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth
Parameter params
remote.NetworkContinueWithAuthParameterscommand parameterReturns
Promise<local.EmptyResult>
method networkFailRequest
networkFailRequest: ( params: remote.NetworkFailRequestParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "network.failRequest" with parameters. https://w3c.github.io/webdriver-bidi/#command-network-failRequest
Parameter params
remote.NetworkFailRequestParameterscommand parameterReturns
Promise<local.EmptyResult>
method networkProvideResponse
networkProvideResponse: ( params: remote.NetworkProvideResponseParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "network.provideResponse" with parameters. https://w3c.github.io/webdriver-bidi/#command-network-provideResponse
Parameter params
remote.NetworkProvideResponseParameterscommand parameterReturns
Promise<local.EmptyResult>
method networkRemoveIntercept
networkRemoveIntercept: ( params: remote.NetworkRemoveInterceptParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "network.removeIntercept" with parameters. https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept
Parameter params
remote.NetworkRemoveInterceptParameterscommand parameterReturns
Promise<local.EmptyResult>
method networkSetCacheBehavior
networkSetCacheBehavior: ( params: remote.NetworkSetCacheBehaviorParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "network.setCacheBehavior" with parameters. https://w3c.github.io/webdriver-bidi/#command-network-setCacheBehavior
Parameter params
remote.NetworkSetCacheBehaviorParameterscommand parameterReturns
Promise<local.EmptyResult>
method scriptAddPreloadScript
scriptAddPreloadScript: ( params: remote.ScriptAddPreloadScriptParameters) => Promise<local.ScriptAddPreloadScriptResult>;WebDriver Bidi command to send command method "script.addPreloadScript" with parameters. https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript
Parameter params
remote.ScriptAddPreloadScriptParameterscommand parameterReturns
Promise<local.ScriptAddPreloadScriptResult>
method scriptCallFunction
scriptCallFunction: ( params: remote.ScriptCallFunctionParameters) => Promise<local.ScriptEvaluateResult>;WebDriver Bidi command to send command method "script.callFunction" with parameters. https://w3c.github.io/webdriver-bidi/#command-script-callFunction
Parameter params
remote.ScriptCallFunctionParameterscommand parameterReturns
Promise<local.EmptyResult>
method scriptDisown
scriptDisown: ( params: remote.ScriptDisownParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "script.disown" with parameters. https://w3c.github.io/webdriver-bidi/#command-script-disown
Parameter params
remote.ScriptDisownParameterscommand parameterReturns
Promise<local.EmptyResult>
method scriptEvaluate
scriptEvaluate: ( params: remote.ScriptEvaluateParameters) => Promise<local.ScriptEvaluateResult>;WebDriver Bidi command to send command method "script.evaluate" with parameters. https://w3c.github.io/webdriver-bidi/#command-script-evaluate
Parameter params
remote.ScriptEvaluateParameterscommand parameterReturns
Promise<local.ScriptEvaluateResult>
method scriptGetRealms
scriptGetRealms: ( params: remote.ScriptGetRealmsParameters) => Promise<local.ScriptGetRealmsResult>;WebDriver Bidi command to send command method "script.getRealms" with parameters. https://w3c.github.io/webdriver-bidi/#command-script-getRealms
Parameter params
remote.ScriptGetRealmsParameterscommand parameterReturns
Promise<local.ScriptGetRealmsResult>
method scriptRemovePreloadScript
scriptRemovePreloadScript: ( params: remote.ScriptRemovePreloadScriptParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "script.removePreloadScript" with parameters. https://w3c.github.io/webdriver-bidi/#command-script-removePreloadScript
Parameter params
remote.ScriptRemovePreloadScriptParameterscommand parameterReturns
Promise<local.EmptyResult>
method sessionEnd
sessionEnd: (params: remote.EmptyParams) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "session.end" with parameters. https://w3c.github.io/webdriver-bidi/#command-session-end
Parameter params
remote.EmptyParamscommand parameterReturns
Promise<local.EmptyResult>
method sessionNew
sessionNew: ( params: remote.SessionNewParameters) => Promise<local.SessionNewResult>;WebDriver Bidi command to send command method "session.new" with parameters. https://w3c.github.io/webdriver-bidi/#command-session-new
Parameter params
remote.SessionNewParameterscommand parameterReturns
Promise<local.SessionNewResult>
method sessionStatus
sessionStatus: ( params: remote.EmptyParams) => Promise<local.SessionStatusResult>;WebDriver Bidi command to send command method "session.status" with parameters. https://w3c.github.io/webdriver-bidi/#command-session-status
Parameter params
remote.EmptyParamscommand parameterReturns
Promise<local.SessionStatusResult>
method sessionSubscribe
sessionSubscribe: ( params: remote.SessionSubscriptionRequest) => Promise<local.SessionSubscribeResult>;WebDriver Bidi command to send command method "session.subscribe" with parameters. https://w3c.github.io/webdriver-bidi/#command-session-subscribe
Parameter params
remote.SessionSubscriptionRequestcommand parameterReturns
Promise<local.SessionSubscribeResult>
method sessionUnsubscribe
sessionUnsubscribe: ( params: remote.SessionUnsubscribeParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "session.unsubscribe" with parameters. https://w3c.github.io/webdriver-bidi/#command-session-unsubscribe
Parameter params
remote.SessionUnsubscribeParameterscommand parameterReturns
Promise<local.EmptyResult>
method storageDeleteCookies
storageDeleteCookies: ( params: remote.StorageDeleteCookiesParameters) => Promise<local.StorageDeleteCookiesResult>;WebDriver Bidi command to send command method "storage.deleteCookies" with parameters. https://w3c.github.io/webdriver-bidi/#command-storage-deleteCookies
Parameter params
remote.StorageDeleteCookiesParameterscommand parameterReturns
Promise<local.StorageDeleteCookiesResult>
method storageGetCookies
storageGetCookies: ( params: remote.StorageGetCookiesParameters) => Promise<local.StorageGetCookiesResult>;WebDriver Bidi command to send command method "storage.getCookies" with parameters. https://w3c.github.io/webdriver-bidi/#command-storage-getCookies
Parameter params
remote.StorageGetCookiesParameterscommand parameterReturns
Promise<local.StorageGetCookiesResult>
method storageSetCookie
storageSetCookie: ( params: remote.StorageSetCookieParameters) => Promise<local.StorageSetCookieResult>;WebDriver Bidi command to send command method "storage.setCookie" with parameters. https://w3c.github.io/webdriver-bidi/#command-storage-setCookie
Parameter params
remote.StorageSetCookieParameterscommand parameterReturns
Promise<local.StorageSetCookieResult>
method webExtensionInstall
webExtensionInstall: ( params: remote.WebExtensionInstallParameters) => Promise<local.WebExtensionInstallResult>;WebDriver Bidi command to send command method "webExtension.install" with parameters. https://w3c.github.io/webdriver-bidi/#command-webExtension-install
Parameter params
remote.WebExtensionInstallParameterscommand parameterReturns
Promise<local.WebExtensionInstallResult>
method webExtensionUninstall
webExtensionUninstall: ( params: remote.WebExtensionUninstallParameters) => Promise<local.EmptyResult>;WebDriver Bidi command to send command method "webExtension.uninstall" with parameters. https://w3c.github.io/webdriver-bidi/#command-webExtension-uninstall
Parameter params
remote.WebExtensionUninstallParameterscommand parameterReturns
Promise<local.EmptyResult>
class CommandRuntimeOptions
class CommandRuntimeOptions {}Additional options outside of the WebDriver spec, exclusively for WebdriverIO, only for runtime, and not sent to Appium
constructor
constructor(options: { mask?: boolean });property mask
mask?: boolean;class WebDriver
class WebDriver {}property WebDriver
static readonly WebDriver: typeof WebDriver;method attachToSession
static attachToSession: ( options?: AttachOptions, modifier?: (...args: any[]) => any, userPrototype?: {}, commandWrapper?: (...args: any[]) => any) => Client;allows user to attach to existing sessions
method newSession
static newSession: ( options: Capabilities.RemoteConfig, modifier?: (...args: any[]) => any, userPrototype?: {}, customCommandWrapper?: (...args: any[]) => any, implicitWaitExclusionList?: string[]) => Promise<Client>;method reloadSession
static reloadSession: ( instance: Client & { _bidiHandler?: BidiHandler }, newCapabilities?: WebdriverIO.Capabilities) => Promise<string>;Changes The instance session id and browser capabilities for the new session directly into the passed in browser object
Parameter instance
the object we get from a new browser session.
Returns
{string} the new session id of the browser
Interfaces
interface AttachOptions
interface AttachOptions extends Partial<SessionFlags>, Partial<Options.WebDriver> {}property capabilities
capabilities?: WebdriverIO.Capabilities;property requestedCapabilities
requestedCapabilities?: Capabilities.WithRequestedCapabilities['capabilities'];property sessionId
sessionId: string;interface BaseClient
interface BaseClient extends EventEmitter, SessionFlags {}property capabilities
capabilities: WebdriverIO.Capabilities;property options
options: Options.WebDriver;property requestedCapabilities
requestedCapabilities: Capabilities.WithRequestedCapabilities['capabilities'];property sessionId
sessionId: string;interface Client
interface Client extends Omit<BaseClient, keyof BidiEventHandler>, ProtocolCommands, BidiHandler, BidiEventHandler {}interface JSONWPCommandError
interface JSONWPCommandError extends Error {}property code
code?: string;property statusCode
statusCode?: string;property statusMessage
statusMessage?: string;interface SessionFlags
interface SessionFlags {}property isAndroid
isAndroid: boolean;property isBidi
isBidi: boolean;property isChromium
isChromium: boolean;property isFirefox
isFirefox: boolean;property isIOS
isIOS: boolean;property isMacApp
isMacApp: boolean;property isMobile
isMobile: boolean;property isNativeContext
isNativeContext: boolean;property isSauce
isSauce: boolean;property isSeleniumStandalone
isSeleniumStandalone: boolean;property isW3C
isW3C: boolean;property isWindowsApp
isWindowsApp: boolean;property mobileContext
mobileContext: string | undefined;interface WebDriverCommandEvent
interface WebDriverCommandEvent {}Type Aliases
type BidiCommands
type BidiCommands = WebDriverBidiCommands[keyof WebDriverBidiCommands]['socket']['command'];type BidiEventMap
type BidiEventMap = { [Event in keyof Omit< WebDriverBidiCommands, 'sendCommand' | 'sendAsyncCommand' >]: BidiInterface[WebDriverBidiCommands[Event]['socket']['command']];};type BidiResponses
type BidiResponses = ValueOf<ObtainMethods<Pick<BidiHandler, BidiCommands>>>;type EventMap
type EventMap = { [Event in EventData['method']]: GetParam<EventData, Event>;} & WebDriverClassicEvents;type RemoteConfig
type RemoteConfig = Options.WebDriver & Capabilities.WithRequestedCapabilities;Namespaces
namespace local
module 'build/bidi/localTypes.d.ts' {}!!! PLEASE DO NOT EDIT THIS FILE !!!
This source file, even though checked in, is auto-generated based on the current development within the WebDriver Bidi spec. Any changes to this file need to come from the specification. You can generate this file by calling
$ npm run generate:bidifrom the project root. You can find the scripts that generates this file in ./scripts/bidi/**
interface BrowserClientWindowInfo
interface BrowserClientWindowInfo {}interface BrowserGetClientWindowsResult
interface BrowserGetClientWindowsResult {}property clientWindows
clientWindows: BrowserClientWindowInfo[];interface BrowserGetUserContextsResult
interface BrowserGetUserContextsResult {}property userContexts
userContexts: BrowserUserContextInfo[];interface BrowserUserContextInfo
interface BrowserUserContextInfo {}property userContext
userContext: BrowserUserContext;interface BrowsingContextAccessibilityLocator
interface BrowsingContextAccessibilityLocator {}interface BrowsingContextBaseNavigationInfo
interface BrowsingContextBaseNavigationInfo {}property context
context: BrowsingContextBrowsingContext;property navigation
navigation: BrowsingContextNavigation | null;property timestamp
timestamp: JsUint;property url
url: string;interface BrowsingContextCaptureScreenshotResult
interface BrowsingContextCaptureScreenshotResult {}property data
data: string;interface BrowsingContextContextCreated
interface BrowsingContextContextCreated {}interface BrowsingContextContextDestroyed
interface BrowsingContextContextDestroyed {}interface BrowsingContextContextLocator
interface BrowsingContextContextLocator {}interface BrowsingContextCreateResult
interface BrowsingContextCreateResult {}property context
context: BrowsingContextBrowsingContext;interface BrowsingContextCssLocator
interface BrowsingContextCssLocator {}interface BrowsingContextDomContentLoaded
interface BrowsingContextDomContentLoaded {}interface BrowsingContextDownloadWillBegin
interface BrowsingContextDownloadWillBegin {}interface BrowsingContextDownloadWillBeginParams
interface BrowsingContextDownloadWillBeginParams extends BrowsingContextBaseNavigationInfo {}property suggestedFilename
suggestedFilename: string;interface BrowsingContextFragmentNavigated
interface BrowsingContextFragmentNavigated {}interface BrowsingContextGetTreeResult
interface BrowsingContextGetTreeResult {}property contexts
contexts: BrowsingContextInfoList;interface BrowsingContextHistoryUpdated
interface BrowsingContextHistoryUpdated {}interface BrowsingContextHistoryUpdatedParameters
interface BrowsingContextHistoryUpdatedParameters {}interface BrowsingContextInfo
interface BrowsingContextInfo {}property children
children: BrowsingContextInfoList | null;property clientWindow
clientWindow: BrowserClientWindow;property context
context: BrowsingContextBrowsingContext;property originalOpener
originalOpener: BrowsingContextBrowsingContext | null;property parent
parent?: BrowsingContextBrowsingContext | null;property url
url: string;property userContext
userContext: BrowserUserContext;interface BrowsingContextInnerTextLocator
interface BrowsingContextInnerTextLocator {}property ignoreCase
ignoreCase?: boolean;property matchType
matchType?: 'full' | 'partial';property maxDepth
maxDepth?: JsUint;property type
type: 'innerText';property value
value: string;interface BrowsingContextLoad
interface BrowsingContextLoad {}interface BrowsingContextLocateNodesResult
interface BrowsingContextLocateNodesResult {}property nodes
nodes: ScriptNodeRemoteValue[];interface BrowsingContextNavigateResult
interface BrowsingContextNavigateResult {}property navigation
navigation: BrowsingContextNavigation | null;property url
url: string;interface BrowsingContextNavigationAborted
interface BrowsingContextNavigationAborted {}interface BrowsingContextNavigationCommitted
interface BrowsingContextNavigationCommitted {}interface BrowsingContextNavigationFailed
interface BrowsingContextNavigationFailed {}interface BrowsingContextNavigationInfo
interface BrowsingContextNavigationInfo extends BrowsingContextBaseNavigationInfo {}interface BrowsingContextNavigationStarted
interface BrowsingContextNavigationStarted {}interface BrowsingContextPrintResult
interface BrowsingContextPrintResult {}property data
data: string;interface BrowsingContextTraverseHistoryResult
interface BrowsingContextTraverseHistoryResult {}interface BrowsingContextUserPromptClosed
interface BrowsingContextUserPromptClosed {}interface BrowsingContextUserPromptClosedParameters
interface BrowsingContextUserPromptClosedParameters {}interface BrowsingContextUserPromptOpened
interface BrowsingContextUserPromptOpened {}interface BrowsingContextUserPromptOpenedParameters
interface BrowsingContextUserPromptOpenedParameters {}property context
context: BrowsingContextBrowsingContext;property defaultValue
defaultValue?: string;property handler
handler: SessionUserPromptHandlerType;property message
message: string;property type
type: BrowsingContextUserPromptType;interface BrowsingContextXPathLocator
interface BrowsingContextXPathLocator {}interface CommandResponse
interface CommandResponse extends Extensible {}interface EmptyResult
interface EmptyResult extends Extensible {}interface ErrorResponse
interface ErrorResponse extends Extensible {}property error
error: ErrorCode;property id
id: JsUint | null;property message
message: string;property stacktrace
stacktrace?: string;property type
type: 'error';interface InputEvent
interface InputEvent extends InputFileDialogOpened {}interface InputFileDialogInfo
interface InputFileDialogInfo {}interface InputFileDialogOpened
interface InputFileDialogOpened {}interface LogBaseLogEntry
interface LogBaseLogEntry {}property level
level: LogLevel;property source
source: ScriptSource;property stackTrace
stackTrace?: ScriptStackTrace;property text
text: string | null;property timestamp
timestamp: JsUint;interface LogConsoleLogEntry
interface LogConsoleLogEntry extends LogBaseLogEntry {}interface LogEntryAdded
interface LogEntryAdded {}interface LogEvent
interface LogEvent extends LogEntryAdded {}interface LogGenericLogEntry
interface LogGenericLogEntry extends LogBaseLogEntry {}property type
type: string;interface LogJavascriptLogEntry
interface LogJavascriptLogEntry extends LogBaseLogEntry {}property type
type: 'javascript';interface NetworkAddInterceptResult
interface NetworkAddInterceptResult {}property intercept
intercept: NetworkIntercept;interface NetworkAuthChallenge
interface NetworkAuthChallenge {}interface NetworkAuthRequired
interface NetworkAuthRequired {}interface NetworkAuthRequiredParameters
interface NetworkAuthRequiredParameters extends NetworkBaseParameters {}property response
response: NetworkResponseData;interface NetworkBase64Value
interface NetworkBase64Value {}interface NetworkBaseParameters
interface NetworkBaseParameters {}property context
context: BrowsingContextBrowsingContext | null;property intercepts
intercepts?: NetworkIntercept[];property isBlocked
isBlocked: boolean;property navigation
navigation: BrowsingContextNavigation | null;property redirectCount
redirectCount: JsUint;property request
request: NetworkRequestData;property timestamp
timestamp: JsUint;interface NetworkBeforeRequestSent
interface NetworkBeforeRequestSent {}interface NetworkBeforeRequestSentParameters
interface NetworkBeforeRequestSentParameters extends NetworkBaseParameters {}property initiator
initiator?: NetworkInitiator;interface NetworkCookie
interface NetworkCookie {}interface NetworkFetchError
interface NetworkFetchError {}interface NetworkFetchErrorParameters
interface NetworkFetchErrorParameters extends NetworkBaseParameters {}property errorText
errorText: string;interface NetworkFetchTimingInfo
interface NetworkFetchTimingInfo {}property connectEnd
connectEnd: number;property connectStart
connectStart: number;property dnsEnd
dnsEnd: number;property dnsStart
dnsStart: number;property fetchStart
fetchStart: number;property redirectEnd
redirectEnd: number;property redirectStart
redirectStart: number;property requestStart
requestStart: number;property requestTime
requestTime: number;property responseEnd
responseEnd: number;property responseStart
responseStart: number;property timeOrigin
timeOrigin: number;property tlsStart
tlsStart: number;interface NetworkHeader
interface NetworkHeader {}interface NetworkInitiator
interface NetworkInitiator {}property columnNumber
columnNumber?: JsUint;property lineNumber
lineNumber?: JsUint;property request
request?: NetworkRequest;property stackTrace
stackTrace?: ScriptStackTrace;property type
type?: 'parser' | 'script' | 'preflight' | 'other';interface NetworkRequestData
interface NetworkRequestData {}property bodySize
bodySize: JsUint | null;property cookies
cookies: NetworkCookie[];property destination
destination: string;property headers
headers: NetworkHeader[];property headersSize
headersSize: JsUint;property initiatorType
initiatorType: string | null;property method
method: string;property request
request: NetworkRequest;property timings
timings: NetworkFetchTimingInfo;property url
url: string;interface NetworkResponseCompleted
interface NetworkResponseCompleted {}interface NetworkResponseCompletedParameters
interface NetworkResponseCompletedParameters extends NetworkBaseParameters {}property response
response: NetworkResponseData;interface NetworkResponseContent
interface NetworkResponseContent {}property size
size: JsUint;interface NetworkResponseData
interface NetworkResponseData {}property authChallenges
authChallenges?: NetworkAuthChallenge[];property bodySize
bodySize: JsUint | null;property bytesReceived
bytesReceived: JsUint;property content
content: NetworkResponseContent;property fromCache
fromCache: boolean;property headers
headers: NetworkHeader[];property headersSize
headersSize: JsUint | null;property mimeType
mimeType: string;property protocol
protocol: string;property status
status: JsUint;property statusText
statusText: string;property url
url: string;interface NetworkResponseStarted
interface NetworkResponseStarted {}interface NetworkResponseStartedParameters
interface NetworkResponseStartedParameters extends NetworkBaseParameters {}property response
response: NetworkResponseData;interface NetworkResult
interface NetworkResult extends NetworkAddInterceptResult {}interface NetworkStringValue
interface NetworkStringValue {}interface ScriptAddPreloadScriptResult
interface ScriptAddPreloadScriptResult {}property script
script: ScriptPreloadScript;interface ScriptArrayBufferRemoteValue
interface ScriptArrayBufferRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'arraybuffer';interface ScriptArrayLocalValue
interface ScriptArrayLocalValue {}interface ScriptArrayRemoteValue
interface ScriptArrayRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'array';property value
value?: ScriptListRemoteValue;interface ScriptAudioWorkletRealmInfo
interface ScriptAudioWorkletRealmInfo extends ScriptBaseRealmInfo {}property type
type: 'audio-worklet';interface ScriptBaseRealmInfo
interface ScriptBaseRealmInfo {}interface ScriptBigIntValue
interface ScriptBigIntValue {}interface ScriptBooleanValue
interface ScriptBooleanValue {}interface ScriptChannelProperties
interface ScriptChannelProperties {}property channel
channel: ScriptChannel;property ownership
ownership?: ScriptResultOwnership;property serializationOptions
serializationOptions?: ScriptSerializationOptions;interface ScriptChannelValue
interface ScriptChannelValue {}interface ScriptDateLocalValue
interface ScriptDateLocalValue {}interface ScriptDateLocalValueMap
interface ScriptDateLocalValueMap extends ScriptDateLocalValue {}interface ScriptDateRemoteValue
interface ScriptDateRemoteValue extends ScriptDateLocalValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;interface ScriptDedicatedWorkerRealmInfo
interface ScriptDedicatedWorkerRealmInfo extends ScriptBaseRealmInfo {}interface ScriptErrorRemoteValue
interface ScriptErrorRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'error';interface ScriptEvaluateResultException
interface ScriptEvaluateResultException {}property exceptionDetails
exceptionDetails: ScriptExceptionDetails;property realm
realm: ScriptRealm;property type
type: 'exception';interface ScriptEvaluateResultSuccess
interface ScriptEvaluateResultSuccess {}interface ScriptExceptionDetails
interface ScriptExceptionDetails {}property columnNumber
columnNumber: JsUint;property exception
exception: ScriptRemoteValue;property lineNumber
lineNumber: JsUint;property stackTrace
stackTrace: ScriptStackTrace;property text
text: string;interface ScriptFunctionRemoteValue
interface ScriptFunctionRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'function';interface ScriptGeneratorRemoteValue
interface ScriptGeneratorRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'generator';interface ScriptGetRealmsResult
interface ScriptGetRealmsResult {}property realms
realms: ScriptRealmInfo[];interface ScriptHtmlCollectionRemoteValue
interface ScriptHtmlCollectionRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'htmlcollection';property value
value?: ScriptListRemoteValue;interface ScriptMapLocalValue
interface ScriptMapLocalValue {}interface ScriptMapRemoteValue
interface ScriptMapRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'map';property value
value?: ScriptMappingRemoteValue;interface ScriptMessage
interface ScriptMessage {}interface ScriptMessageParameters
interface ScriptMessageParameters {}interface ScriptNodeListRemoteValue
interface ScriptNodeListRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'nodelist';property value
value?: ScriptListRemoteValue;interface ScriptNodeProperties
interface ScriptNodeProperties {}property attributes
attributes?: Record<string, string>;property childNodeCount
childNodeCount: JsUint;property children
children?: ScriptNodeRemoteValue[];property localName
localName?: string;property mode
mode?: 'open' | 'closed';property namespaceUri
namespaceUri?: string;property nodeType
nodeType: JsUint;property nodeValue
nodeValue?: string;property shadowRoot
shadowRoot?: ScriptNodeRemoteValue | null;interface ScriptNodeRemoteValue
interface ScriptNodeRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property sharedId
sharedId?: ScriptSharedId;property type
type: 'node';property value
value?: ScriptNodeProperties;interface ScriptNullValue
interface ScriptNullValue {}property type
type: null;interface ScriptNumberValue
interface ScriptNumberValue {}interface ScriptObjectLocalValue
interface ScriptObjectLocalValue {}interface ScriptObjectRemoteValue
interface ScriptObjectRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'object';property value
value?: ScriptMappingRemoteValue;interface ScriptPaintWorkletRealmInfo
interface ScriptPaintWorkletRealmInfo extends ScriptBaseRealmInfo {}property type
type: 'paint-worklet';interface ScriptPromiseRemoteValue
interface ScriptPromiseRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'promise';interface ScriptProxyRemoteValue
interface ScriptProxyRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'proxy';interface ScriptRealmCreated
interface ScriptRealmCreated {}interface ScriptRealmDestroyed
interface ScriptRealmDestroyed {}interface ScriptRealmDestroyedParameters
interface ScriptRealmDestroyedParameters {}property realm
realm: ScriptRealm;interface ScriptRegExpLocalValue
interface ScriptRegExpLocalValue {}interface ScriptRegExpLocalValueMap
interface ScriptRegExpLocalValueMap extends ScriptRegExpLocalValue {}interface ScriptRegExpRemoteValue
interface ScriptRegExpRemoteValue extends ScriptRegExpLocalValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;interface ScriptRegExpValue
interface ScriptRegExpValue {}interface ScriptRemoteObjectReference
interface ScriptRemoteObjectReference extends Extensible {}interface ScriptSerializationOptions
interface ScriptSerializationOptions {}property includeShadowTree
includeShadowTree?: 'none' | 'open' | 'all';'none'
property maxDomDepth
maxDomDepth?: JsUint | null;property maxObjectDepth
maxObjectDepth?: JsUint | null;null
interface ScriptServiceWorkerRealmInfo
interface ScriptServiceWorkerRealmInfo extends ScriptBaseRealmInfo {}property type
type: 'service-worker';interface ScriptSetLocalValue
interface ScriptSetLocalValue {}interface ScriptSetRemoteValue
interface ScriptSetRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'set';property value
value?: ScriptListRemoteValue;interface ScriptSharedReference
interface ScriptSharedReference extends Extensible {}interface ScriptSharedWorkerRealmInfo
interface ScriptSharedWorkerRealmInfo extends ScriptBaseRealmInfo {}property type
type: 'shared-worker';interface ScriptSource
interface ScriptSource {}interface ScriptStackFrame
interface ScriptStackFrame {}property columnNumber
columnNumber: JsUint;property functionName
functionName: string;property lineNumber
lineNumber: JsUint;property url
url: string;interface ScriptStackTrace
interface ScriptStackTrace {}property callFrames
callFrames: ScriptStackFrame[];interface ScriptStringValue
interface ScriptStringValue {}interface ScriptSymbolRemoteValue
interface ScriptSymbolRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'symbol';interface ScriptTypedArrayRemoteValue
interface ScriptTypedArrayRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'typedarray';interface ScriptUndefinedValue
interface ScriptUndefinedValue {}property type
type: 'undefined';interface ScriptWeakMapRemoteValue
interface ScriptWeakMapRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'weakmap';interface ScriptWeakSetRemoteValue
interface ScriptWeakSetRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'weakset';interface ScriptWindowProxyProperties
interface ScriptWindowProxyProperties {}property context
context: BrowsingContextBrowsingContext;interface ScriptWindowProxyRemoteValue
interface ScriptWindowProxyRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'window';property value
value: ScriptWindowProxyProperties;interface ScriptWindowRealmInfo
interface ScriptWindowRealmInfo extends ScriptBaseRealmInfo {}interface ScriptWorkerRealmInfo
interface ScriptWorkerRealmInfo extends ScriptBaseRealmInfo {}property type
type: 'worker';interface ScriptWorkletRealmInfo
interface ScriptWorkletRealmInfo extends ScriptBaseRealmInfo {}property type
type: 'worklet';interface SessionAutodetectProxyConfiguration
interface SessionAutodetectProxyConfiguration extends Extensible {}property proxyType
proxyType: 'autodetect';interface SessionCapabilitiesRequest
interface SessionCapabilitiesRequest {}property alwaysMatch
alwaysMatch?: SessionCapabilityRequest;property firstMatch
firstMatch?: SessionCapabilityRequest[];interface SessionCapabilityRequest
interface SessionCapabilityRequest extends Extensible {}property acceptInsecureCerts
acceptInsecureCerts?: boolean;property browserName
browserName?: string;property browserVersion
browserVersion?: string;property platformName
platformName?: string;property proxy
proxy?: SessionProxyConfiguration;property unhandledPromptBehavior
unhandledPromptBehavior?: SessionUserPromptHandler;interface SessionDirectProxyConfiguration
interface SessionDirectProxyConfiguration extends Extensible {}property proxyType
proxyType: 'direct';interface SessionManualProxyConfiguration
interface SessionManualProxyConfiguration extends SessionSocksProxyConfiguration, Extensible {}interface SessionNewResult
interface SessionNewResult {}property capabilities
capabilities: { acceptInsecureCerts: boolean; browserName: string; browserVersion: string; platformName: string; setWindowRect: boolean; userAgent: string; proxy?: SessionProxyConfiguration; unhandledPromptBehavior?: SessionUserPromptHandler; webSocketUrl?: string;};property sessionId
sessionId: string;interface SessionPacProxyConfiguration
interface SessionPacProxyConfiguration extends Extensible {}property proxyAutoconfigUrl
proxyAutoconfigUrl: string;property proxyType
proxyType: 'pac';interface SessionSocksProxyConfiguration
interface SessionSocksProxyConfiguration {}property socksProxy
socksProxy: string;property socksVersion
socksVersion: number;interface SessionStatusResult
interface SessionStatusResult {}interface SessionSubscribeResult
interface SessionSubscribeResult {}property subscription
subscription: SessionSubscription;interface SessionSystemProxyConfiguration
interface SessionSystemProxyConfiguration extends Extensible {}property proxyType
proxyType: 'system';interface SessionUserPromptHandler
interface SessionUserPromptHandler {}property alert
alert?: SessionUserPromptHandlerType;property beforeUnload
beforeUnload?: SessionUserPromptHandlerType;property confirm
confirm?: SessionUserPromptHandlerType;property default
default?: SessionUserPromptHandlerType;property file
file?: SessionUserPromptHandlerType;property prompt
prompt?: SessionUserPromptHandlerType;interface StorageDeleteCookiesResult
interface StorageDeleteCookiesResult {}property partitionKey
partitionKey: StoragePartitionKey;interface StorageGetCookiesResult
interface StorageGetCookiesResult {}property cookies
cookies: NetworkCookie[];property partitionKey
partitionKey: StoragePartitionKey;interface StoragePartitionKey
interface StoragePartitionKey extends Extensible {}property sourceOrigin
sourceOrigin?: string;property userContext
userContext?: string;interface StorageSetCookieResult
interface StorageSetCookieResult {}property partitionKey
partitionKey: StoragePartitionKey;interface WebExtensionInstallResult
interface WebExtensionInstallResult {}property extension
extension: WebExtensionExtension;interface WebExtensionResult
interface WebExtensionResult extends WebExtensionInstallResult {}type BrowserClientWindow
type BrowserClientWindow = string;type BrowserCreateUserContextResult
type BrowserCreateUserContextResult = BrowserUserContextInfo;type BrowserResult
type BrowserResult = BrowserCreateUserContextResult | BrowserGetUserContextsResult;type BrowserUserContext
type BrowserUserContext = string;type BrowsingContextBrowsingContext
type BrowsingContextBrowsingContext = string;type BrowsingContextEvent
type BrowsingContextEvent = | BrowsingContextContextCreated | BrowsingContextContextDestroyed | BrowsingContextDomContentLoaded | BrowsingContextDownloadWillBegin | BrowsingContextFragmentNavigated | BrowsingContextHistoryUpdated | BrowsingContextLoad | BrowsingContextNavigationAborted | BrowsingContextNavigationCommitted | BrowsingContextNavigationFailed | BrowsingContextNavigationStarted | BrowsingContextUserPromptClosed | BrowsingContextUserPromptOpened;type BrowsingContextInfoList
type BrowsingContextInfoList = BrowsingContextInfo[];type BrowsingContextLocator
type BrowsingContextLocator = | BrowsingContextAccessibilityLocator | BrowsingContextCssLocator | BrowsingContextContextLocator | BrowsingContextInnerTextLocator | BrowsingContextXPathLocator;type BrowsingContextNavigation
type BrowsingContextNavigation = string;type BrowsingContextResult
type BrowsingContextResult = | BrowsingContextCaptureScreenshotResult | BrowsingContextCreateResult | BrowsingContextGetTreeResult | BrowsingContextLocateNodesResult | BrowsingContextNavigateResult | BrowsingContextPrintResult | BrowsingContextTraverseHistoryResult;type BrowsingContextUserPromptType
type BrowsingContextUserPromptType = 'alert' | 'beforeunload' | 'confirm' | 'prompt';type ErrorCode
type ErrorCode = | 'invalid argument' | 'invalid selector' | 'invalid session id' | 'invalid web extension' | 'move target out of bounds' | 'no such alert' | 'no such element' | 'no such frame' | 'no such handle' | 'no such history entry' | 'no such intercept' | 'no such node' | 'no such request' | 'no such script' | 'no such storage partition' | 'no such user context' | 'no such web extension' | 'session not created' | 'unable to capture screen' | 'unable to close browser' | 'unable to set cookie' | 'unable to set file input' | 'underspecified storage partition' | 'unknown command' | 'unknown error' | 'unsupported operation';type EventData
type EventData = | BrowsingContextEvent | InputEvent | LogEvent | NetworkEvent | ScriptEvent;type Extensible
type Extensible = Record<string, unknown>;type JsInt
type JsInt = number;type JsUint
type JsUint = number;type LogEntry
type LogEntry = LogGenericLogEntry | LogConsoleLogEntry | LogJavascriptLogEntry;type LogLevel
type LogLevel = 'debug' | 'info' | 'warn' | 'error';type Message
type Message = CommandResponse | ErrorResponse | Event;!!! PLEASE DO NOT EDIT THIS FILE !!!
This source file, even though checked in, is auto-generated based on the current development within the WebDriver Bidi spec. Any changes to this file need to come from the specification. You can generate this file by calling
$ npm run generate:bidifrom the project root. You can find the scripts that generates this file in ./scripts/bidi/**
type NetworkBytesValue
type NetworkBytesValue = NetworkStringValue | NetworkBase64Value;type NetworkEvent
type NetworkEvent = | NetworkAuthRequired | NetworkBeforeRequestSent | NetworkFetchError | NetworkResponseCompleted | NetworkResponseStarted;type NetworkIntercept
type NetworkIntercept = string;type NetworkRequest
type NetworkRequest = string;type NetworkSameSite
type NetworkSameSite = 'strict' | 'lax' | 'none';type ResultData
type ResultData = | BrowsingContextResult | EmptyResult | NetworkResult | ScriptResult | SessionResult | StorageResult | WebExtensionResult;type ScriptChannel
type ScriptChannel = string;type ScriptEvaluateResult
type ScriptEvaluateResult = | ScriptEvaluateResultSuccess | ScriptEvaluateResultException;type ScriptEvent
type ScriptEvent = ScriptMessage | ScriptRealmCreated | ScriptRealmDestroyed;type ScriptHandle
type ScriptHandle = string;type ScriptInternalId
type ScriptInternalId = string;type ScriptListLocalValue
type ScriptListLocalValue = ScriptLocalValue[];type ScriptListRemoteValue
type ScriptListRemoteValue = ScriptRemoteValue[];type ScriptLocalValue
type ScriptLocalValue = | ScriptRemoteReference | ScriptPrimitiveProtocolValue | ScriptChannelValue | ScriptArrayLocalValue | ScriptDateLocalValueMap | ScriptMapLocalValue | ScriptObjectLocalValue | ScriptRegExpLocalValueMap | ScriptSetLocalValue;type ScriptMappingLocalValue
type ScriptMappingLocalValue = (ScriptLocalValue | ScriptLocalValue)[];type ScriptMappingRemoteValue
type ScriptMappingRemoteValue = (ScriptRemoteValue | ScriptRemoteValue)[];type ScriptPreloadScript
type ScriptPreloadScript = string;type ScriptPrimitiveProtocolValue
type ScriptPrimitiveProtocolValue = | ScriptUndefinedValue | ScriptNullValue | ScriptStringValue | ScriptNumberValue | ScriptBooleanValue | ScriptBigIntValue;type ScriptRealm
type ScriptRealm = string;type ScriptRealmInfo
type ScriptRealmInfo = | ScriptWindowRealmInfo | ScriptDedicatedWorkerRealmInfo | ScriptSharedWorkerRealmInfo | ScriptServiceWorkerRealmInfo | ScriptWorkerRealmInfo | ScriptPaintWorkletRealmInfo | ScriptAudioWorkletRealmInfo | ScriptWorkletRealmInfo;type ScriptRealmType
type ScriptRealmType = | 'window' | 'dedicated-worker' | 'shared-worker' | 'service-worker' | 'worker' | 'paint-worklet' | 'audio-worklet' | 'worklet';type ScriptRemoteReference
type ScriptRemoteReference = ScriptSharedReference | ScriptRemoteObjectReference;type ScriptRemoteValue
type ScriptRemoteValue = | ScriptPrimitiveProtocolValue | ScriptSymbolRemoteValue | ScriptArrayRemoteValue | ScriptObjectRemoteValue | ScriptFunctionRemoteValue | ScriptRegExpRemoteValue | ScriptDateRemoteValue | ScriptMapRemoteValue | ScriptSetRemoteValue | ScriptWeakMapRemoteValue | ScriptWeakSetRemoteValue | ScriptGeneratorRemoteValue | ScriptErrorRemoteValue | ScriptProxyRemoteValue | ScriptPromiseRemoteValue | ScriptTypedArrayRemoteValue | ScriptArrayBufferRemoteValue | ScriptNodeListRemoteValue | ScriptHtmlCollectionRemoteValue | ScriptNodeRemoteValue | ScriptWindowProxyRemoteValue;type ScriptResult
type ScriptResult = | ScriptAddPreloadScriptResult | ScriptEvaluateResult | ScriptGetRealmsResult;type ScriptResultOwnership
type ScriptResultOwnership = 'root' | 'none';type ScriptSharedId
type ScriptSharedId = string;type ScriptSpecialNumber
type ScriptSpecialNumber = 'NaN' | '-0' | 'Infinity' | '-Infinity';type SessionProxyConfiguration
type SessionProxyConfiguration = | SessionAutodetectProxyConfiguration | SessionDirectProxyConfiguration | SessionManualProxyConfiguration | SessionPacProxyConfiguration | SessionSystemProxyConfiguration;type SessionResult
type SessionResult = SessionNewResult | SessionStatusResult | SessionSubscribeResult;type SessionSubscription
type SessionSubscription = string;type SessionUserPromptHandlerType
type SessionUserPromptHandlerType = 'accept' | 'dismiss' | 'ignore';type StorageResult
type StorageResult = | StorageDeleteCookiesResult | StorageGetCookiesResult | StorageSetCookieResult;type WebExtensionExtension
type WebExtensionExtension = string;namespace remote
module 'build/bidi/remoteTypes.d.ts' {}!!! PLEASE DO NOT EDIT THIS FILE !!!
This source file, even though checked in, is auto-generated based on the current development within the WebDriver Bidi spec. Any changes to this file need to come from the specification. You can generate this file by calling
$ npm run generate:bidifrom the project root. You can find the scripts that generates this file in ./scripts/bidi/**
interface BrowserClientWindowInfo
interface BrowserClientWindowInfo {}interface BrowserClientWindowNamedState
interface BrowserClientWindowNamedState {}property state
state: 'fullscreen' | 'maximized' | 'minimized';interface BrowserClientWindowRectState
interface BrowserClientWindowRectState {}interface BrowserClose
interface BrowserClose extends Command {}interface BrowserCreateUserContext
interface BrowserCreateUserContext extends Command {}interface BrowserCreateUserContextParameters
interface BrowserCreateUserContextParameters {}property acceptInsecureCerts
acceptInsecureCerts?: boolean;interface BrowserGetClientWindows
interface BrowserGetClientWindows extends Command {}interface BrowserGetUserContexts
interface BrowserGetUserContexts extends Command {}interface BrowserRemoveUserContext
interface BrowserRemoveUserContext extends Command {}interface BrowserRemoveUserContextParameters
interface BrowserRemoveUserContextParameters {}property userContext
userContext: BrowserUserContext;interface BrowserSetClientWindowState
interface BrowserSetClientWindowState extends Command {}interface BrowserSetClientWindowStateParameters
interface BrowserSetClientWindowStateParameters extends BrowserClientWindowNamedState {}property clientWindow
clientWindow: BrowserClientWindow;interface BrowserUserContextInfo
interface BrowserUserContextInfo {}property userContext
userContext: BrowserUserContext;interface BrowsingContextAccessibilityLocator
interface BrowsingContextAccessibilityLocator {}interface BrowsingContextActivate
interface BrowsingContextActivate extends Command {}interface BrowsingContextActivateParameters
interface BrowsingContextActivateParameters {}property context
context: BrowsingContextBrowsingContext;interface BrowsingContextBoxClipRectangle
interface BrowsingContextBoxClipRectangle {}interface BrowsingContextCaptureScreenshot
interface BrowsingContextCaptureScreenshot extends Command {}interface BrowsingContextCaptureScreenshotParameters
interface BrowsingContextCaptureScreenshotParameters {}interface BrowsingContextClose
interface BrowsingContextClose extends Command {}interface BrowsingContextCloseParameters
interface BrowsingContextCloseParameters {}property context
context: BrowsingContextBrowsingContext;property promptUnload
promptUnload?: boolean;interface BrowsingContextContextLocator
interface BrowsingContextContextLocator {}interface BrowsingContextCreate
interface BrowsingContextCreate extends Command {}interface BrowsingContextCreateParameters
interface BrowsingContextCreateParameters {}property background
background?: boolean;property referenceContext
referenceContext?: BrowsingContextBrowsingContext;property type
type: BrowsingContextCreateType;property userContext
userContext?: BrowserUserContext;interface BrowsingContextCssLocator
interface BrowsingContextCssLocator {}interface BrowsingContextElementClipRectangle
interface BrowsingContextElementClipRectangle {}interface BrowsingContextGetTree
interface BrowsingContextGetTree extends Command {}interface BrowsingContextGetTreeParameters
interface BrowsingContextGetTreeParameters {}interface BrowsingContextHandleUserPrompt
interface BrowsingContextHandleUserPrompt extends Command {}interface BrowsingContextHandleUserPromptParameters
interface BrowsingContextHandleUserPromptParameters {}interface BrowsingContextImageFormat
interface BrowsingContextImageFormat {}interface BrowsingContextInnerTextLocator
interface BrowsingContextInnerTextLocator {}property ignoreCase
ignoreCase?: boolean;property matchType
matchType?: 'full' | 'partial';property maxDepth
maxDepth?: JsUint;property type
type: 'innerText';property value
value: string;interface BrowsingContextLocateNodes
interface BrowsingContextLocateNodes extends Command {}interface BrowsingContextLocateNodesParameters
interface BrowsingContextLocateNodesParameters {}property context
context: BrowsingContextBrowsingContext;property locator
locator: BrowsingContextLocator;property maxNodeCount
maxNodeCount?: JsUint;property serializationOptions
serializationOptions?: ScriptSerializationOptions;property startNodes
startNodes?: ScriptSharedReference[];interface BrowsingContextNavigate
interface BrowsingContextNavigate extends Command {}interface BrowsingContextNavigateParameters
interface BrowsingContextNavigateParameters {}interface BrowsingContextPrint
interface BrowsingContextPrint extends Command {}interface BrowsingContextPrintMarginParameters
interface BrowsingContextPrintMarginParameters {}interface BrowsingContextPrintPageParameters
interface BrowsingContextPrintPageParameters {}interface BrowsingContextPrintParameters
interface BrowsingContextPrintParameters {}property background
background?: boolean;property context
context: BrowsingContextBrowsingContext;property margin
margin?: BrowsingContextPrintMarginParameters;property orientation
orientation?: 'portrait' | 'landscape';'portrait'
property page
page?: BrowsingContextPrintPageParameters;property pageRanges
pageRanges?: (JsUint | string)[];property scale
scale?: number;1
property shrinkToFit
shrinkToFit?: boolean;true
interface BrowsingContextReload
interface BrowsingContextReload extends Command {}interface BrowsingContextReloadParameters
interface BrowsingContextReloadParameters {}property context
context: BrowsingContextBrowsingContext;property ignoreCache
ignoreCache?: boolean;property wait
wait?: BrowsingContextReadinessState;interface BrowsingContextSetViewport
interface BrowsingContextSetViewport extends Command {}interface BrowsingContextSetViewportParameters
interface BrowsingContextSetViewportParameters {}property context
context?: BrowsingContextBrowsingContext;property devicePixelRatio
devicePixelRatio?: number | null;property userContexts
userContexts?: BrowserUserContext[];property viewport
viewport?: BrowsingContextViewport | null;interface BrowsingContextTraverseHistory
interface BrowsingContextTraverseHistory extends Command {}interface BrowsingContextTraverseHistoryParameters
interface BrowsingContextTraverseHistoryParameters {}interface BrowsingContextViewport
interface BrowsingContextViewport {}interface BrowsingContextXPathLocator
interface BrowsingContextXPathLocator {}interface Command
interface Command {}!!! PLEASE DO NOT EDIT THIS FILE !!!
This source file, even though checked in, is auto-generated based on the current development within the WebDriver Bidi spec. Any changes to this file need to come from the specification. You can generate this file by calling
$ npm run generate:bidifrom the project root. You can find the scripts that generates this file in ./scripts/bidi/**
property id
id: JsUint;interface EmptyParams
interface EmptyParams {}interface EmulationCommand
interface EmulationCommand extends EmulationSetGeolocationOverride {}interface EmulationGeolocationCoordinates
interface EmulationGeolocationCoordinates {}property accuracy
accuracy?: number;1
property altitude
altitude?: number | null;null
property altitudeAccuracy
altitudeAccuracy?: number | null;null
property heading
heading?: number | null;null
property latitude
latitude: number;property longitude
longitude: number;property speed
speed?: number | null;null
interface EmulationGeolocationPositionError
interface EmulationGeolocationPositionError {}interface EmulationGeolocationPositionUnavailableError
interface EmulationGeolocationPositionUnavailableError {}property type
type: 'positionUnavailable';interface EmulationSetGeolocationOverride
interface EmulationSetGeolocationOverride extends Command {}interface EmulationSetGeolocationPosition
interface EmulationSetGeolocationPosition {}property coordinates
coordinates: EmulationGeolocationCoordinates | null;property type
type: 'position';interface InputElementOrigin
interface InputElementOrigin {}interface InputFileDialogInfo
interface InputFileDialogInfo {}interface InputKeyDownAction
interface InputKeyDownAction {}interface InputKeySourceActions
interface InputKeySourceActions {}interface InputKeyUpAction
interface InputKeyUpAction {}interface InputNoneSourceActions
interface InputNoneSourceActions {}interface InputPauseAction
interface InputPauseAction {}interface InputPerformActions
interface InputPerformActions extends Command {}interface InputPerformActionsParameters
interface InputPerformActionsParameters {}interface InputPointerCommonProperties
interface InputPointerCommonProperties {}property altitudeAngle
altitudeAngle?: number;0 .. 2 * Math.PI
property azimuthAngle
azimuthAngle?: number;property height
height?: JsUint;1
property pressure
pressure?: number;property tangentialPressure
tangentialPressure?: number;property twist
twist?: number;0 .. Math.PI / 2
property width
width?: JsUint;1
interface InputPointerDownAction
interface InputPointerDownAction extends InputPointerCommonProperties {}interface InputPointerMoveAction
interface InputPointerMoveAction extends InputPointerCommonProperties {}interface InputPointerParameters
interface InputPointerParameters {}property pointerType
pointerType?: InputPointerType;'mouse'
interface InputPointerSourceActions
interface InputPointerSourceActions {}property actions
actions: InputPointerSourceAction[];property id
id: string;property parameters
parameters?: InputPointerParameters;property type
type: 'pointer';interface InputPointerUpAction
interface InputPointerUpAction {}interface InputReleaseActions
interface InputReleaseActions extends Command {}interface InputReleaseActionsParameters
interface InputReleaseActionsParameters {}property context
context: BrowsingContextBrowsingContext;interface InputSetFiles
interface InputSetFiles extends Command {}interface InputSetFilesParameters
interface InputSetFilesParameters {}interface InputWheelScrollAction
interface InputWheelScrollAction {}interface InputWheelSourceActions
interface InputWheelSourceActions {}interface NetworkAddIntercept
interface NetworkAddIntercept extends Command {}interface NetworkAddInterceptParameters
interface NetworkAddInterceptParameters {}property contexts
contexts?: BrowsingContextBrowsingContext[];property phases
phases: NetworkInterceptPhase[];property urlPatterns
urlPatterns?: NetworkUrlPattern[];interface NetworkAuthCredentials
interface NetworkAuthCredentials {}interface NetworkBase64Value
interface NetworkBase64Value {}interface NetworkContinueRequest
interface NetworkContinueRequest extends Command {}interface NetworkContinueRequestParameters
interface NetworkContinueRequestParameters {}interface NetworkContinueResponse
interface NetworkContinueResponse extends Command {}interface NetworkContinueResponseParameters
interface NetworkContinueResponseParameters {}property cookies
cookies?: NetworkSetCookieHeader[];property credentials
credentials?: NetworkAuthCredentials;property headers
headers?: NetworkHeader[];property reasonPhrase
reasonPhrase?: string;property request
request: NetworkRequest;property statusCode
statusCode?: JsUint;interface NetworkContinueWithAuth
interface NetworkContinueWithAuth extends Command {}interface NetworkContinueWithAuthCredentials
interface NetworkContinueWithAuthCredentials {}property action
action: 'provideCredentials';property credentials
credentials: NetworkAuthCredentials;interface NetworkContinueWithAuthNoCredentials
interface NetworkContinueWithAuthNoCredentials {}property action
action: 'default' | 'cancel';interface NetworkContinueWithAuthParameters
interface NetworkContinueWithAuthParameters extends NetworkContinueWithAuthCredentials {}property request
request: NetworkRequest;interface NetworkCookie
interface NetworkCookie {}interface NetworkCookieHeader
interface NetworkCookieHeader {}interface NetworkFailRequest
interface NetworkFailRequest extends Command {}interface NetworkFailRequestParameters
interface NetworkFailRequestParameters {}property request
request: NetworkRequest;interface NetworkHeader
interface NetworkHeader {}interface NetworkProvideResponse
interface NetworkProvideResponse extends Command {}interface NetworkProvideResponseParameters
interface NetworkProvideResponseParameters {}property body
body?: NetworkBytesValue;property cookies
cookies?: NetworkSetCookieHeader[];property headers
headers?: NetworkHeader[];property reasonPhrase
reasonPhrase?: string;property request
request: NetworkRequest;property statusCode
statusCode?: JsUint;interface NetworkRemoveIntercept
interface NetworkRemoveIntercept extends Command {}interface NetworkRemoveInterceptParameters
interface NetworkRemoveInterceptParameters {}property intercept
intercept: NetworkIntercept;interface NetworkSetCacheBehavior
interface NetworkSetCacheBehavior extends Command {}interface NetworkSetCacheBehaviorParameters
interface NetworkSetCacheBehaviorParameters {}property cacheBehavior
cacheBehavior: 'default' | 'bypass';property contexts
contexts?: BrowsingContextBrowsingContext[];interface NetworkSetCookieHeader
interface NetworkSetCookieHeader {}interface NetworkStringValue
interface NetworkStringValue {}interface NetworkUrlPatternPattern
interface NetworkUrlPatternPattern {}interface NetworkUrlPatternString
interface NetworkUrlPatternString {}interface ScriptAddPreloadScript
interface ScriptAddPreloadScript extends Command {}interface ScriptAddPreloadScriptParameters
interface ScriptAddPreloadScriptParameters {}property arguments
arguments?: ScriptChannelValue[];property contexts
contexts?: BrowsingContextBrowsingContext[];property functionDeclaration
functionDeclaration: string;property sandbox
sandbox?: string;property userContexts
userContexts?: BrowserUserContext[];interface ScriptArrayBufferRemoteValue
interface ScriptArrayBufferRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'arraybuffer';interface ScriptArrayLocalValue
interface ScriptArrayLocalValue {}interface ScriptArrayRemoteValue
interface ScriptArrayRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'array';property value
value?: ScriptListRemoteValue;interface ScriptBigIntValue
interface ScriptBigIntValue {}interface ScriptBooleanValue
interface ScriptBooleanValue {}interface ScriptCallFunction
interface ScriptCallFunction extends Command {}interface ScriptCallFunctionParameters
interface ScriptCallFunctionParameters {}property arguments
arguments?: ScriptLocalValue[];property awaitPromise
awaitPromise: boolean;property functionDeclaration
functionDeclaration: string;property resultOwnership
resultOwnership?: ScriptResultOwnership;property serializationOptions
serializationOptions?: ScriptSerializationOptions;property target
target: ScriptTarget;property this
this?: ScriptLocalValue;property userActivation
userActivation?: boolean;interface ScriptChannelProperties
interface ScriptChannelProperties {}property channel
channel: ScriptChannel;property ownership
ownership?: ScriptResultOwnership;property serializationOptions
serializationOptions?: ScriptSerializationOptions;interface ScriptChannelValue
interface ScriptChannelValue {}interface ScriptContextTarget
interface ScriptContextTarget {}interface ScriptDateLocalValue
interface ScriptDateLocalValue {}interface ScriptDateLocalValueMap
interface ScriptDateLocalValueMap extends ScriptDateLocalValue {}interface ScriptDateRemoteValue
interface ScriptDateRemoteValue extends ScriptDateLocalValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;interface ScriptDisown
interface ScriptDisown extends Command {}interface ScriptDisownParameters
interface ScriptDisownParameters {}interface ScriptErrorRemoteValue
interface ScriptErrorRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'error';interface ScriptEvaluate
interface ScriptEvaluate extends Command {}interface ScriptEvaluateParameters
interface ScriptEvaluateParameters {}property awaitPromise
awaitPromise: boolean;property expression
expression: string;property resultOwnership
resultOwnership?: ScriptResultOwnership;property serializationOptions
serializationOptions?: ScriptSerializationOptions;property target
target: ScriptTarget;property userActivation
userActivation?: boolean;interface ScriptEvaluateResultException
interface ScriptEvaluateResultException {}property exceptionDetails
exceptionDetails: ScriptExceptionDetails;property realm
realm: ScriptRealm;property type
type: 'exception';interface ScriptEvaluateResultSuccess
interface ScriptEvaluateResultSuccess {}interface ScriptExceptionDetails
interface ScriptExceptionDetails {}property columnNumber
columnNumber: JsUint;property exception
exception: ScriptRemoteValue;property lineNumber
lineNumber: JsUint;property stackTrace
stackTrace: ScriptStackTrace;property text
text: string;interface ScriptFunctionRemoteValue
interface ScriptFunctionRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'function';interface ScriptGeneratorRemoteValue
interface ScriptGeneratorRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'generator';interface ScriptGetRealms
interface ScriptGetRealms extends Command {}interface ScriptGetRealmsParameters
interface ScriptGetRealmsParameters {}interface ScriptHtmlCollectionRemoteValue
interface ScriptHtmlCollectionRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'htmlcollection';property value
value?: ScriptListRemoteValue;interface ScriptMapLocalValue
interface ScriptMapLocalValue {}interface ScriptMapRemoteValue
interface ScriptMapRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'map';property value
value?: ScriptMappingRemoteValue;interface ScriptNodeListRemoteValue
interface ScriptNodeListRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'nodelist';property value
value?: ScriptListRemoteValue;interface ScriptNodeProperties
interface ScriptNodeProperties {}property attributes
attributes?: Record<string, string>;property childNodeCount
childNodeCount: JsUint;property children
children?: ScriptNodeRemoteValue[];property localName
localName?: string;property mode
mode?: 'open' | 'closed';property namespaceUri
namespaceUri?: string;property nodeType
nodeType: JsUint;property nodeValue
nodeValue?: string;property shadowRoot
shadowRoot?: ScriptNodeRemoteValue | null;interface ScriptNodeRemoteValue
interface ScriptNodeRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property sharedId
sharedId?: ScriptSharedId;property type
type: 'node';property value
value?: ScriptNodeProperties;interface ScriptNullValue
interface ScriptNullValue {}property type
type: null;interface ScriptNumberValue
interface ScriptNumberValue {}interface ScriptObjectLocalValue
interface ScriptObjectLocalValue {}interface ScriptObjectRemoteValue
interface ScriptObjectRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'object';property value
value?: ScriptMappingRemoteValue;interface ScriptPromiseRemoteValue
interface ScriptPromiseRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'promise';interface ScriptProxyRemoteValue
interface ScriptProxyRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'proxy';interface ScriptRealmTarget
interface ScriptRealmTarget {}property realm
realm: ScriptRealm;interface ScriptRegExpLocalValue
interface ScriptRegExpLocalValue {}interface ScriptRegExpLocalValueMap
interface ScriptRegExpLocalValueMap extends ScriptRegExpLocalValue {}interface ScriptRegExpRemoteValue
interface ScriptRegExpRemoteValue extends ScriptRegExpLocalValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;interface ScriptRegExpValue
interface ScriptRegExpValue {}interface ScriptRemoteObjectReference
interface ScriptRemoteObjectReference {}interface ScriptRemovePreloadScript
interface ScriptRemovePreloadScript extends Command {}interface ScriptRemovePreloadScriptParameters
interface ScriptRemovePreloadScriptParameters {}property script
script: ScriptPreloadScript;interface ScriptSerializationOptions
interface ScriptSerializationOptions {}property includeShadowTree
includeShadowTree?: 'none' | 'open' | 'all';'none'
property maxDomDepth
maxDomDepth?: JsUint | null;property maxObjectDepth
maxObjectDepth?: JsUint | null;null
interface ScriptSetLocalValue
interface ScriptSetLocalValue {}interface ScriptSetRemoteValue
interface ScriptSetRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'set';property value
value?: ScriptListRemoteValue;interface ScriptSharedReference
interface ScriptSharedReference extends Extensible {}interface ScriptStackFrame
interface ScriptStackFrame {}property columnNumber
columnNumber: JsUint;property functionName
functionName: string;property lineNumber
lineNumber: JsUint;property url
url: string;interface ScriptStackTrace
interface ScriptStackTrace {}property callFrames
callFrames: ScriptStackFrame[];interface ScriptStringValue
interface ScriptStringValue {}interface ScriptSymbolRemoteValue
interface ScriptSymbolRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'symbol';interface ScriptTypedArrayRemoteValue
interface ScriptTypedArrayRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'typedarray';interface ScriptUndefinedValue
interface ScriptUndefinedValue {}property type
type: 'undefined';interface ScriptWeakMapRemoteValue
interface ScriptWeakMapRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'weakmap';interface ScriptWeakSetRemoteValue
interface ScriptWeakSetRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'weakset';interface ScriptWindowProxyProperties
interface ScriptWindowProxyProperties {}property context
context: BrowsingContextBrowsingContext;interface ScriptWindowProxyRemoteValue
interface ScriptWindowProxyRemoteValue {}property handle
handle?: ScriptHandle;property internalId
internalId?: ScriptInternalId;property type
type: 'window';property value
value: ScriptWindowProxyProperties;interface SessionAutodetectProxyConfiguration
interface SessionAutodetectProxyConfiguration extends Extensible {}property proxyType
proxyType: 'autodetect';interface SessionCapabilitiesRequest
interface SessionCapabilitiesRequest {}property alwaysMatch
alwaysMatch?: SessionCapabilityRequest;property firstMatch
firstMatch?: SessionCapabilityRequest[];interface SessionCapabilityRequest
interface SessionCapabilityRequest extends Extensible {}property acceptInsecureCerts
acceptInsecureCerts?: boolean;property browserName
browserName?: string;property browserVersion
browserVersion?: string;property platformName
platformName?: string;property proxy
proxy?: SessionProxyConfiguration;property unhandledPromptBehavior
unhandledPromptBehavior?: SessionUserPromptHandler;interface SessionDirectProxyConfiguration
interface SessionDirectProxyConfiguration extends Extensible {}property proxyType
proxyType: 'direct';interface SessionEnd
interface SessionEnd extends Command {}interface SessionManualProxyConfiguration
interface SessionManualProxyConfiguration extends SessionSocksProxyConfiguration, Extensible {}interface SessionNew
interface SessionNew extends Command {}interface SessionNewParameters
interface SessionNewParameters {}property capabilities
capabilities: SessionCapabilitiesRequest;interface SessionPacProxyConfiguration
interface SessionPacProxyConfiguration extends Extensible {}property proxyAutoconfigUrl
proxyAutoconfigUrl: string;property proxyType
proxyType: 'pac';interface SessionSocksProxyConfiguration
interface SessionSocksProxyConfiguration extends Extensible {}property socksProxy
socksProxy: string;property socksVersion
socksVersion: number;interface SessionStatus
interface SessionStatus extends Command {}interface SessionSubscribe
interface SessionSubscribe extends Command {}interface SessionSubscriptionRequest
interface SessionSubscriptionRequest {}property contexts
contexts?: BrowsingContextBrowsingContext[];property events
events: string[];property userContexts
userContexts?: BrowserUserContext[];interface SessionSystemProxyConfiguration
interface SessionSystemProxyConfiguration extends Extensible {}property proxyType
proxyType: 'system';interface SessionUnsubscribe
interface SessionUnsubscribe extends Command {}interface SessionUnsubscribeByAttributesRequest
interface SessionUnsubscribeByAttributesRequest {}interface SessionUnsubscribeByIdRequest
interface SessionUnsubscribeByIdRequest {}property subscriptions
subscriptions: SessionSubscription[];interface SessionUserPromptHandler
interface SessionUserPromptHandler {}property alert
alert?: SessionUserPromptHandlerType;property beforeUnload
beforeUnload?: SessionUserPromptHandlerType;property confirm
confirm?: SessionUserPromptHandlerType;property default
default?: SessionUserPromptHandlerType;property file
file?: SessionUserPromptHandlerType;property prompt
prompt?: SessionUserPromptHandlerType;interface StorageBrowsingContextPartitionDescriptor
interface StorageBrowsingContextPartitionDescriptor {}interface StorageCookieFilter
interface StorageCookieFilter extends Extensible {}interface StorageDeleteCookies
interface StorageDeleteCookies extends Command {}interface StorageDeleteCookiesParameters
interface StorageDeleteCookiesParameters {}interface StorageGetCookies
interface StorageGetCookies extends Command {}interface StorageGetCookiesParameters
interface StorageGetCookiesParameters {}interface StoragePartialCookie
interface StoragePartialCookie extends Extensible {}interface StoragePartitionKey
interface StoragePartitionKey {}property sourceOrigin
sourceOrigin?: string;property userContext
userContext?: string;interface StorageSetCookie
interface StorageSetCookie extends Command {}interface StorageSetCookieParameters
interface StorageSetCookieParameters {}interface StorageStorageKeyPartitionDescriptor
interface StorageStorageKeyPartitionDescriptor extends Extensible {}property sourceOrigin
sourceOrigin?: string;property type
type: 'storageKey';property userContext
userContext?: string;interface WebExtensionExtensionArchivePath
interface WebExtensionExtensionArchivePath {}interface WebExtensionExtensionBase64Encoded
interface WebExtensionExtensionBase64Encoded {}interface WebExtensionExtensionPath
interface WebExtensionExtensionPath {}interface WebExtensionInstall
interface WebExtensionInstall extends Command {}interface WebExtensionInstallParameters
interface WebExtensionInstallParameters {}property extensionData
extensionData: WebExtensionExtensionData;interface WebExtensionUninstall
interface WebExtensionUninstall extends Command {}interface WebExtensionUninstallParameters
interface WebExtensionUninstallParameters {}property extension
extension: WebExtensionExtension;type BrowserClientWindow
type BrowserClientWindow = string;type BrowserCommand
type BrowserCommand = | BrowserClose | BrowserCreateUserContext | BrowserGetClientWindows | BrowserGetUserContexts | BrowserRemoveUserContext | BrowserSetClientWindowState;type BrowserUserContext
type BrowserUserContext = string;type BrowsingContextBrowsingContext
type BrowsingContextBrowsingContext = string;type BrowsingContextClipRectangle
type BrowsingContextClipRectangle = | BrowsingContextBoxClipRectangle | BrowsingContextElementClipRectangle;type BrowsingContextCommand
type BrowsingContextCommand = | BrowsingContextActivate | BrowsingContextCaptureScreenshot | BrowsingContextClose | BrowsingContextCreate | BrowsingContextGetTree | BrowsingContextHandleUserPrompt | BrowsingContextLocateNodes | BrowsingContextNavigate | BrowsingContextPrint | BrowsingContextReload | BrowsingContextSetViewport | BrowsingContextTraverseHistory;type BrowsingContextCreateType
type BrowsingContextCreateType = 'tab' | 'window';type BrowsingContextLocator
type BrowsingContextLocator = | BrowsingContextAccessibilityLocator | BrowsingContextCssLocator | BrowsingContextContextLocator | BrowsingContextInnerTextLocator | BrowsingContextXPathLocator;type BrowsingContextNavigation
type BrowsingContextNavigation = string;type BrowsingContextReadinessState
type BrowsingContextReadinessState = 'none' | 'interactive' | 'complete';type BrowsingContextUserPromptType
type BrowsingContextUserPromptType = 'alert' | 'beforeunload' | 'confirm' | 'prompt';type CommandData
type CommandData = | BrowserCommand | BrowsingContextCommand | EmulationCommand | InputCommand | NetworkCommand | ScriptCommand | SessionCommand | StorageCommand | WebExtensionCommand;type EmulationSetGeolocationOverrideParameters
type EmulationSetGeolocationOverrideParameters = | EmulationSetGeolocationPosition | EmulationGeolocationPositionError;type Extensible
type Extensible = Record<string, unknown>;type InputCommand
type InputCommand = InputPerformActions | InputReleaseActions | InputSetFiles;type InputKeySourceAction
type InputKeySourceAction = InputPauseAction | InputKeyDownAction | InputKeyUpAction;type InputNoneSourceAction
type InputNoneSourceAction = InputPauseAction;type InputOrigin
type InputOrigin = 'viewport' | 'pointer' | InputElementOrigin;type InputPointerSourceAction
type InputPointerSourceAction = | InputPauseAction | InputPointerDownAction | InputPointerUpAction | InputPointerMoveAction;type InputPointerType
type InputPointerType = 'mouse' | 'pen' | 'touch';type InputSourceActions
type InputSourceActions = | InputNoneSourceActions | InputKeySourceActions | InputPointerSourceActions | InputWheelSourceActions;type InputWheelSourceAction
type InputWheelSourceAction = InputPauseAction | InputWheelScrollAction;type JsInt
type JsInt = number;type JsUint
type JsUint = number;type NetworkBytesValue
type NetworkBytesValue = NetworkStringValue | NetworkBase64Value;type NetworkCommand
type NetworkCommand = | NetworkAddIntercept | NetworkContinueRequest | NetworkContinueResponse | NetworkContinueWithAuth | NetworkFailRequest | NetworkProvideResponse | NetworkRemoveIntercept | NetworkSetCacheBehavior;type NetworkIntercept
type NetworkIntercept = string;type NetworkInterceptPhase
type NetworkInterceptPhase = | 'beforeRequestSent' | 'responseStarted' | 'authRequired';type NetworkRequest
type NetworkRequest = string;type NetworkSameSite
type NetworkSameSite = 'strict' | 'lax' | 'none';type NetworkUrlPattern
type NetworkUrlPattern = NetworkUrlPatternPattern | NetworkUrlPatternString;type ScriptChannel
type ScriptChannel = string;type ScriptCommand
type ScriptCommand = | ScriptAddPreloadScript | ScriptCallFunction | ScriptDisown | ScriptEvaluate | ScriptGetRealms | ScriptRemovePreloadScript;type ScriptEvaluateResult
type ScriptEvaluateResult = | ScriptEvaluateResultSuccess | ScriptEvaluateResultException;type ScriptHandle
type ScriptHandle = string;type ScriptInternalId
type ScriptInternalId = string;type ScriptListLocalValue
type ScriptListLocalValue = ScriptLocalValue[];type ScriptListRemoteValue
type ScriptListRemoteValue = ScriptRemoteValue[];type ScriptLocalValue
type ScriptLocalValue = | ScriptRemoteReference | ScriptPrimitiveProtocolValue | ScriptChannelValue | ScriptArrayLocalValue | ScriptDateLocalValueMap | ScriptMapLocalValue | ScriptObjectLocalValue | ScriptRegExpLocalValueMap | ScriptSetLocalValue;type ScriptMappingLocalValue
type ScriptMappingLocalValue = (ScriptLocalValue | ScriptLocalValue)[];type ScriptMappingRemoteValue
type ScriptMappingRemoteValue = (ScriptRemoteValue | ScriptRemoteValue)[];type ScriptPreloadScript
type ScriptPreloadScript = string;type ScriptPrimitiveProtocolValue
type ScriptPrimitiveProtocolValue = | ScriptUndefinedValue | ScriptNullValue | ScriptStringValue | ScriptNumberValue | ScriptBooleanValue | ScriptBigIntValue;type ScriptRealm
type ScriptRealm = string;type ScriptRealmType
type ScriptRealmType = | 'window' | 'dedicated-worker' | 'shared-worker' | 'service-worker' | 'worker' | 'paint-worklet' | 'audio-worklet' | 'worklet';type ScriptRemoteReference
type ScriptRemoteReference = ScriptSharedReference | ScriptRemoteObjectReference;type ScriptRemoteValue
type ScriptRemoteValue = | ScriptPrimitiveProtocolValue | ScriptSymbolRemoteValue | ScriptArrayRemoteValue | ScriptObjectRemoteValue | ScriptFunctionRemoteValue | ScriptRegExpRemoteValue | ScriptDateRemoteValue | ScriptMapRemoteValue | ScriptSetRemoteValue | ScriptWeakMapRemoteValue | ScriptWeakSetRemoteValue | ScriptGeneratorRemoteValue | ScriptErrorRemoteValue | ScriptProxyRemoteValue | ScriptPromiseRemoteValue | ScriptTypedArrayRemoteValue | ScriptArrayBufferRemoteValue | ScriptNodeListRemoteValue | ScriptHtmlCollectionRemoteValue | ScriptNodeRemoteValue | ScriptWindowProxyRemoteValue;type ScriptResultOwnership
type ScriptResultOwnership = 'root' | 'none';type ScriptSharedId
type ScriptSharedId = string;type ScriptSpecialNumber
type ScriptSpecialNumber = 'NaN' | '-0' | 'Infinity' | '-Infinity';type ScriptTarget
type ScriptTarget = ScriptContextTarget | ScriptRealmTarget;type SessionCommand
type SessionCommand = | SessionEnd | SessionNew | SessionStatus | SessionSubscribe | SessionUnsubscribe;type SessionProxyConfiguration
type SessionProxyConfiguration = | SessionAutodetectProxyConfiguration | SessionDirectProxyConfiguration | SessionManualProxyConfiguration | SessionPacProxyConfiguration | SessionSystemProxyConfiguration;type SessionSubscription
type SessionSubscription = string;type SessionUnsubscribeParameters
type SessionUnsubscribeParameters = | SessionUnsubscribeByAttributesRequest | SessionUnsubscribeByIdRequest;type SessionUserPromptHandlerType
type SessionUserPromptHandlerType = 'accept' | 'dismiss' | 'ignore';type StorageCommand
type StorageCommand = StorageDeleteCookies | StorageGetCookies | StorageSetCookie;type StoragePartitionDescriptor
type StoragePartitionDescriptor = | StorageBrowsingContextPartitionDescriptor | StorageStorageKeyPartitionDescriptor;type WebExtensionCommand
type WebExtensionCommand = WebExtensionInstall | WebExtensionUninstall;type WebExtensionExtension
type WebExtensionExtension = string;type WebExtensionExtensionData
type WebExtensionExtensionData = | WebExtensionExtensionArchivePath | WebExtensionExtensionBase64Encoded | WebExtensionExtensionPath;Package Files (8)
Dependencies (11)
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/webdriver.
- Markdown[](https://www.jsdocs.io/package/webdriver)
- HTML<a href="https://www.jsdocs.io/package/webdriver"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 12203 ms. - Missing or incorrect documentation? Open an issue for this package.
