webdriver
- Version 9.4.4
- Published
- 300 kB
- 10 dependencies
- MIT license
Install
npm i webdriver
yarn add webdriver
pnpm add webdriver
Overview
A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol
Index
Variables
Functions
Classes
BidiHandler
- browserClose()
- browserCreateUserContext()
- browserGetUserContexts()
- browserRemoveUserContext()
- browsingContextActivate()
- browsingContextCaptureScreenshot()
- browsingContextClose()
- browsingContextCreate()
- browsingContextGetTree()
- browsingContextHandleUserPrompt()
- browsingContextLocateNodes()
- browsingContextNavigate()
- browsingContextPrint()
- browsingContextReload()
- browsingContextSetViewport()
- browsingContextTraverseHistory()
- inputPerformActions()
- inputReleaseActions()
- inputSetFiles()
- networkAddIntercept()
- networkContinueRequest()
- networkContinueResponse()
- networkContinueWithAuth()
- networkFailRequest()
- networkProvideResponse()
- networkRemoveIntercept()
- scriptAddPreloadScript()
- scriptCallFunction()
- scriptDisown()
- scriptEvaluate()
- scriptGetRealms()
- scriptRemovePreloadScript()
- sessionEnd()
- sessionNew()
- sessionStatus()
- sessionSubscribe()
- sessionUnsubscribe()
- storageDeleteCookies()
- storageGetCookies()
- storageSetCookie()
Interfaces
Type Aliases
Namespaces
local
- BrowserCreateUserContextResult
- BrowserGetUserContextsResult
- BrowserResult
- BrowserUserContext
- BrowserUserContextInfo
- BrowsingContextAccessibilityLocator
- BrowsingContextBrowsingContext
- BrowsingContextCaptureScreenshotResult
- BrowsingContextContextCreated
- BrowsingContextContextDestroyed
- BrowsingContextCreateResult
- BrowsingContextCssLocator
- BrowsingContextDomContentLoaded
- BrowsingContextDownloadWillBegin
- BrowsingContextEvent
- BrowsingContextFragmentNavigated
- BrowsingContextGetTreeResult
- BrowsingContextInfo
- BrowsingContextInfoList
- BrowsingContextInnerTextLocator
- BrowsingContextLoad
- BrowsingContextLocateNodesResult
- BrowsingContextLocator
- BrowsingContextNavigateResult
- BrowsingContextNavigation
- BrowsingContextNavigationAborted
- BrowsingContextNavigationFailed
- BrowsingContextNavigationInfo
- BrowsingContextNavigationStarted
- BrowsingContextPrintResult
- BrowsingContextResult
- BrowsingContextTraverseHistoryResult
- BrowsingContextUserPromptClosed
- BrowsingContextUserPromptClosedParameters
- BrowsingContextUserPromptOpened
- BrowsingContextUserPromptOpenedParameters
- BrowsingContextXPathLocator
- CommandResponse
- EmptyResult
- ErrorCode
- ErrorResponse
- Event
- EventData
- Extensible
- 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
- 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
- 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
- SessionSystemProxyConfiguration
- StorageDeleteCookiesResult
- StorageGetCookiesResult
- StoragePartitionKey
- StorageResult
- StorageSetCookieResult
remote
- BrowserClose
- BrowserCommand
- BrowserCreateUserContext
- BrowserGetUserContexts
- BrowserRemoveUserContext
- BrowserRemoveUserContextParameters
- BrowserUserContext
- BrowserUserContextInfo
- BrowsingContextAccessibilityLocator
- BrowsingContextActivate
- BrowsingContextActivateParameters
- BrowsingContextBoxClipRectangle
- BrowsingContextBrowsingContext
- BrowsingContextCaptureScreenshot
- BrowsingContextCaptureScreenshotParameters
- BrowsingContextClipRectangle
- BrowsingContextClose
- BrowsingContextCloseParameters
- BrowsingContextCommand
- 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
- BrowsingContextViewport
- BrowsingContextXPathLocator
- Command
- CommandData
- EmptyParams
- Extensible
- InputCommand
- InputElementOrigin
- 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
- NetworkSetCookieHeader
- NetworkStringValue
- NetworkUrlPattern
- NetworkUrlPatternPattern
- NetworkUrlPatternString
- ScriptAddPreloadScript
- ScriptAddPreloadScriptParameters
- ScriptArrayBufferRemoteValue
- ScriptArrayLocalValue
- ScriptArrayRemoteValue
- ScriptBigIntValue
- ScriptBooleanValue
- ScriptCallFunction
- ScriptCallFunctionParameters
- ScriptChannel
- ScriptChannelProperties
- ScriptChannelValue
- ScriptCommand
- ScriptContextTarget
- ScriptDateLocalValue
- 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
- 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
- SessionSubscriptionRequest
- SessionSystemProxyConfiguration
- SessionUnsubscribe
- StorageBrowsingContextPartitionDescriptor
- StorageCommand
- StorageCookieFilter
- StorageDeleteCookies
- StorageDeleteCookiesParameters
- StorageGetCookies
- StorageGetCookiesParameters
- StoragePartialCookie
- StoragePartitionDescriptor
- StoragePartitionKey
- StorageSetCookie
- StorageSetCookieParameters
- StorageStorageKeyPartitionDescriptor
Variables
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, ...args: unknown[]) => Promise<WebDriverResponse | BidiResponses | void>;
function getEnvironmentVars
getEnvironmentVars: ({ isW3C, isMobile, isIOS, isAndroid, isFirefox, isSauce, isSeleniumStandalone, isChromium,}: 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) => PropertyDescriptorMap;
Enhance the monad with WebDriver Bidi primitives if a connection can be established successfully
Parameter socketUrl
url to bidi interface
Returns
prototype with interface for bidi primitives
function parseBidiMessage
parseBidiMessage: (this: EventEmitter, data: Buffer) => 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.EmptyParams
command parameterReturns
Promise<local.EmptyResult>
method browserCreateUserContext
browserCreateUserContext: ( params: remote.EmptyParams) => 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.EmptyParams
command parameterReturns
Promise<local.BrowserCreateUserContextResult>
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.EmptyParams
command 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.BrowserRemoveUserContextParameters
command 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.BrowsingContextActivateParameters
command 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.BrowsingContextCaptureScreenshotParameters
command 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.BrowsingContextCloseParameters
command 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.BrowsingContextCreateParameters
command 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.BrowsingContextGetTreeParameters
command 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.BrowsingContextHandleUserPromptParameters
command 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.BrowsingContextLocateNodesParameters
command 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.BrowsingContextNavigateParameters
command 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.BrowsingContextPrintParameters
command 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.BrowsingContextReloadParameters
command 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.BrowsingContextSetViewportParameters
command 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.BrowsingContextTraverseHistoryParameters
command parameterReturns
Promise<local.BrowsingContextTraverseHistoryResult>
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.InputPerformActionsParameters
command 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.InputReleaseActionsParameters
command 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.InputSetFilesParameters
command 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.NetworkAddInterceptParameters
command 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.NetworkContinueRequestParameters
command 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.NetworkContinueResponseParameters
command 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.NetworkContinueWithAuthParameters
command 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.NetworkFailRequestParameters
command 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.NetworkProvideResponseParameters
command 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.NetworkRemoveInterceptParameters
command 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.ScriptAddPreloadScriptParameters
command 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.ScriptCallFunctionParameters
command 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.ScriptDisownParameters
command 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.ScriptEvaluateParameters
command 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.ScriptGetRealmsParameters
command 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.ScriptRemovePreloadScriptParameters
command 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.EmptyParams
command 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.SessionNewParameters
command 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.EmptyParams
command parameterReturns
Promise<local.SessionStatusResult>
method sessionSubscribe
sessionSubscribe: ( params: remote.SessionSubscriptionRequest) => Promise<local.EmptyResult>;
WebDriver Bidi command to send command method "session.subscribe" with parameters. https://w3c.github.io/webdriver-bidi/#command-session-subscribe
Parameter params
remote.SessionSubscriptionRequest
command parameterReturns
Promise<local.EmptyResult>
method sessionUnsubscribe
sessionUnsubscribe: ( params: remote.SessionSubscriptionRequest) => 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.SessionSubscriptionRequest
command 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.StorageDeleteCookiesParameters
command 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.StorageGetCookiesParameters
command 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.StorageSetCookieParameters
command parameterReturns
Promise<local.StorageSetCookieResult>
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) => 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 isMobile
isMobile: boolean;
property isNativeContext
isNativeContext: boolean;
property isSauce
isSauce: boolean;
property isSeleniumStandalone
isSeleniumStandalone: boolean;
property isW3C
isW3C: boolean;
property mobileContext
mobileContext: string | undefined;
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 BrowserGetUserContextsResult
interface BrowserGetUserContextsResult {}
property userContexts
userContexts: BrowserUserContextInfo[];
interface BrowserUserContextInfo
interface BrowserUserContextInfo {}
property userContext
userContext: BrowserUserContext;
interface BrowsingContextAccessibilityLocator
interface BrowsingContextAccessibilityLocator {}
interface BrowsingContextCaptureScreenshotResult
interface BrowsingContextCaptureScreenshotResult {}
property data
data: string;
interface BrowsingContextContextCreated
interface BrowsingContextContextCreated {}
interface BrowsingContextContextDestroyed
interface BrowsingContextContextDestroyed {}
interface BrowsingContextCreateResult
interface BrowsingContextCreateResult {}
property context
context: BrowsingContextBrowsingContext;
interface BrowsingContextCssLocator
interface BrowsingContextCssLocator {}
interface BrowsingContextDomContentLoaded
interface BrowsingContextDomContentLoaded {}
interface BrowsingContextDownloadWillBegin
interface BrowsingContextDownloadWillBegin {}
interface BrowsingContextFragmentNavigated
interface BrowsingContextFragmentNavigated {}
interface BrowsingContextGetTreeResult
interface BrowsingContextGetTreeResult {}
property contexts
contexts: BrowsingContextInfoList;
interface BrowsingContextInfo
interface BrowsingContextInfo {}
property children
children: BrowsingContextInfoList | null;
property context
context: BrowsingContextBrowsingContext;
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 BrowsingContextNavigationFailed
interface BrowsingContextNavigationFailed {}
interface BrowsingContextNavigationInfo
interface BrowsingContextNavigationInfo {}
property context
context: BrowsingContextBrowsingContext;
property navigation
navigation: BrowsingContextNavigation | null;
property timestamp
timestamp: JsUint;
property url
url: string;
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 message
message: string;
property type
type: 'alert' | 'confirm' | 'prompt' | 'beforeunload';
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 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 extends Extensible {}
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 headers
headers: NetworkHeader[];
property headersSize
headersSize: JsUint;
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 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 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 webSocketUrl
webSocketUrl?: boolean;
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; 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 SessionSystemProxyConfiguration
interface SessionSystemProxyConfiguration extends Extensible {}
property proxyType
proxyType: 'system';
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;
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 | BrowsingContextLoad | BrowsingContextNavigationAborted | BrowsingContextNavigationFailed | BrowsingContextNavigationStarted | BrowsingContextUserPromptClosed | BrowsingContextUserPromptOpened;
type BrowsingContextInfoList
type BrowsingContextInfoList = BrowsingContextInfo[];
type BrowsingContextLocator
type BrowsingContextLocator = | BrowsingContextAccessibilityLocator | BrowsingContextCssLocator | BrowsingContextInnerTextLocator | BrowsingContextXPathLocator;
type BrowsingContextNavigation
type BrowsingContextNavigation = string;
type BrowsingContextResult
type BrowsingContextResult = | BrowsingContextCaptureScreenshotResult | BrowsingContextCreateResult | BrowsingContextGetTreeResult | BrowsingContextLocateNodesResult | BrowsingContextNavigateResult | BrowsingContextPrintResult | BrowsingContextTraverseHistoryResult;
type ErrorCode
type ErrorCode = | 'invalid argument' | 'invalid selector' | 'invalid session id' | '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' | '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 | 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;
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 | ScriptDateLocalValue | ScriptMapLocalValue | ScriptObjectLocalValue | ScriptRegExpLocalValue | 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;
type StorageResult
type StorageResult = | StorageDeleteCookiesResult | StorageGetCookiesResult | StorageSetCookieResult;
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 BrowserClose
interface BrowserClose extends Command {}
interface BrowserCreateUserContext
interface BrowserCreateUserContext extends Command {}
interface BrowserGetUserContexts
interface BrowserGetUserContexts extends Command {}
interface BrowserRemoveUserContext
interface BrowserRemoveUserContext extends Command {}
interface BrowserRemoveUserContextParameters
interface BrowserRemoveUserContextParameters {}
property userContext
userContext: BrowserUserContext;
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 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 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 extends Extensible {}
interface InputElementOrigin
interface InputElementOrigin {}
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 extends Extensible {}
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 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;
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 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 ScriptRegExpRemoteValue
interface ScriptRegExpRemoteValue extends ScriptRegExpLocalValue {}
property handle
handle?: ScriptHandle;
property internalId
internalId?: ScriptInternalId;
interface ScriptRegExpValue
interface ScriptRegExpValue {}
interface ScriptRemoteObjectReference
interface ScriptRemoteObjectReference extends Extensible {}
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 webSocketUrl
webSocketUrl?: boolean;
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 {}
property socksProxy
socksProxy: string;
property socksVersion
socksVersion: number;
interface SessionStatus
interface SessionStatus extends Command {}
interface SessionSubscribe
interface SessionSubscribe extends Command {}
interface SessionSubscriptionRequest
interface SessionSubscriptionRequest {}
interface SessionSystemProxyConfiguration
interface SessionSystemProxyConfiguration extends Extensible {}
property proxyType
proxyType: 'system';
interface SessionUnsubscribe
interface SessionUnsubscribe extends Command {}
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 extends Extensible {}
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;
type BrowserCommand
type BrowserCommand = | BrowserClose | BrowserCreateUserContext | BrowserGetUserContexts | BrowserRemoveUserContext;
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 | BrowsingContextInnerTextLocator | BrowsingContextXPathLocator;
type BrowsingContextNavigation
type BrowsingContextNavigation = string;
type BrowsingContextReadinessState
type BrowsingContextReadinessState = 'none' | 'interactive' | 'complete';
type CommandData
type CommandData = | BrowserCommand | BrowsingContextCommand | InputCommand | NetworkCommand | ScriptCommand | SessionCommand | StorageCommand;
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;
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 | ScriptDateLocalValue | ScriptMapLocalValue | ScriptObjectLocalValue | ScriptRegExpLocalValue | 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 StorageCommand
type StorageCommand = StorageDeleteCookies | StorageGetCookies | StorageSetCookie;
type StoragePartitionDescriptor
type StoragePartitionDescriptor = | StorageBrowsingContextPartitionDescriptor | StorageStorageKeyPartitionDescriptor;
Package Files (8)
Dependencies (10)
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[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](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 12079 ms. - Missing or incorrect documentation? Open an issue for this package.