Movatterモバイル変換


[0]ホーム

URL:


Selenium WebDriver JavaScript API
Modules
selenium-webdriver/chrome
selenium-webdriver/chromium
selenium-webdriver/edge
selenium-webdriver/firefox
selenium-webdriver/ie
selenium-webdriver/safari
Classes
Actions
Alert
AlertPromise
ArgumentValue
BaseLogEntry
BaseParameters
BeforeRequestSent
BoxClipRectangle
Browser
BrowsingContext
BrowsingContextInfo
BrowsingContextInspector
BrowsingContextPartitionDescriptor
Build
Builder
By
BytesValue
Capabilities
CaptureScreenshotParameters
ChannelValue
ClientWindowInfo
ClipRectangle
Command
Command
Condition
ConsoleLogEntry
ContinueRequestParameters
ContinueResponseParameters
Cookie
CookieFilter
CreateContextParameters
Credential
DetachedShadowRootError
Device
DriverService
Builder
ElementClickInterceptedError
ElementClipRectangle
ElementNotInteractableError
ElementNotSelectableError
Entry
Environment
EvaluateResultException
EvaluateResultSuccess
ExceptionDetails
Executor
FetchError
FetchTimingInfo
FileDetector
FileDetector
GenericLogEntry
Header
HttpClient
HttpResponse
Index
Initiator
Input
InsecureCertificateError
InvalidArgumentError
InvalidCharacterError
InvalidCookieDomainError
InvalidCoordinatesError
InvalidElementStateError
InvalidSelectorError
JavascriptError
JavascriptLogEntry
Keyboard
Level
LocalValue
Locator
LogManager
Logger
Message
MoveTargetOutOfBoundsError
NavigateResult
NavigationInfo
Network
NetworkInspector
NoSuchAlertError
NoSuchCookieError
NoSuchElementError
NoSuchFrameError
NoSuchSessionError
NoSuchShadowRootError
NoSuchWindowError
PartialCookie
PartitionDescriptor
PartitionKey
Pointer
Preferences
PrintResult
ProvideResponseParameters
RealmInfo
ReferenceValue
RegExpValue
RelativeBy
RemoteValue
Request
RequestData
Response
ResponseData
ResponseStarted
Result
ScriptManager
ScriptTimeoutError
Select
SeleniumServer
SerializationOptions
Server
Session
SessionNotCreatedError
ShadowRoot
ShadowRootPromise
Source
StaleElementReferenceError
Storage
StorageKeyPartitionDescriptor
TimeoutError
UnableToCaptureScreenError
UnableToSetCookieError
UnexpectedAlertOpenError
UnknownCommandError
UnknownMethodError
UnsupportedOperationError
UrlPattern
VirtualAuthenticatorOptions
WebDriver
WebDriverError
WebElement
WebElementCondition
WebElementPromise
Wheel
WindowRealmInfo
Zip
thenableWebDriverProxy
Driver
Options
ServiceBuilder
Driver
Extensions
Options
ServiceBuilder
Driver
Options
ServiceBuilder
AddonFormatError
Channel
Driver
Options
ServiceBuilder
Driver
Options
ServiceBuilder
Driver
Options
ServiceBuilder
Interfaces
Action
Client
Config
Executor
ISelect
IWebDriver
ManualConfig
Options
Cookie
PacConfig
Options
ServiceOptions
SuiteOptions
TargetBrowser
ThenableWebDriver
Timeouts
Global
Atom
Browser
Button
ByHash
Capability
CommandLineFlag
CommandSpec
CommandTransformer
Config
ErrorCode
EvaluateResultType
INTERNAL_COMPUTE_OFFSET_SCRIPT
InterceptPhase
Key
ManualConfig
Name
NonPrimitiveType
Origin
Origin
PacConfig
PageLoadStrategy
Platform
PrimitiveType
Protocol
RealmType
RemoteReferenceType
RemoteType
RequestOptions
ResultOwnership
SameSite
SpecialNumberType
StdIoOptions
THENABLE_DRIVERS
Transport
Type
Type
Type
Type
USER_AGENT
UserPromptHandler
W3C_COMMAND_MAP
ableToSwitchToFrame
addConsoleHandler
alertIsPresent
arraysEqual
binaryPaths
buildPath
buildRequest
builtTargets
check
checkCodePoint
checkLegacyResponse
checkOptions
checkedCall
checkedNodeCall
color
consoleHandler
copy
copyDir
createDriver
delayed
direct
elementIsDisabled
elementIsEnabled
elementIsNotSelected
elementIsNotVisible
elementIsSelected
elementIsVisible
elementLocated
elementTextContains
elementTextIs
elementTextMatches
elementsLocated
encodeError
ensureFileDetectorsAreEnabled
escapeCss
exec
executeCommand
exists
extractId
filter
filterNonW3CCaps
findFreePort
findInPath
formatSpawnArgs
fromWireValue
fullyResolveKeys
fullyResolved
getAddress
getAvailableBrowsers
getBinary
getBinaryPaths
getBrowsersToTestFromEnv
getBrowsingContextInstance
getHostName
getIPAddress
getJavaPath
getLevel
getLogInspectorInstance
getLogger
getLoopbackAddress
getRequestOptions
getStatus
getTestHook
headersToString
ignore
init
installConsoleHandler
isErrorResponse
isFree
isId
isIdle
isObject
isPromise
isRetryableNetworkError
isSelenium3x
legacyTimeout
load
locate
locateWith
manual
map
mkdir
mkdirp
of
pac
pad
parseHttpResponse
path
projectRoot
read
removeConsoleHandler
requireAtom
resolveCommandLineFlags
resolveWaitMessage
rmDir
sendIndex
sendRequest
serialize
setFileDetector
shouldRetryRequest
socks
splitHostAndPort
stalenessOf
start
startSeleniumServer
stat
stop
suite
suite
system
thenFinally
throwDecodedError
titleContains
titleIs
titleMatches
tmpDir
tmpFile
toExecuteAtomCommand
toMap
toWireValue
tryParse
unlink
unzip
url
urlContains
urlIs
urlMatches
waitForServer
waitForUrl
walkDir
whereIs
withTagName
write
On this page

Network

Represents all commands and events of Network module. Described in https://w3c.github.io/webdriver-bidi/#module-network.

Constructor

new Network(driver, browsingContextIds)

Represents a Network object.

Parameters:
NameTypeDescription
driverDriver

The driver to fetch the BiDi connection.

browsingContextIdsArray

An array of browsing context IDs that the network events will be subscribed to.

Methods

(async)addIntercept(params) → {Promise.<string>}

Adds a network intercept.

Parameters:
NameTypeDescription
paramsAddInterceptParameters

The parameters for the network intercept.

Throws:
  • If params is not an instance of AddInterceptParameters.
Type
Error
Returns:
  • A promise that resolves to the added intercept's id.
Type: 
Promise.<string>

(async)authRequired(callback) → {Promise.<number>}

Subscribes to the 'network.authRequired' event and handles it with the provided callback.

Parameters:
NameTypeDescription
callbackfunction

The callback function to handle the event.

Returns:
  • A promise that resolves when the subscription is successful.
Type: 
Promise.<number>

(async)beforeRequestSent(callback) → {Promise.<void>}

Subscribes to the 'network.beforeRequestSent' event and handles it with the provided callback.

Parameters:
NameTypeDescription
callbackfunction

The callback function to handle the event.

Returns:
  • A promise that resolves when the subscription is successful.
Type: 
Promise.<void>

(async)cancelAuth(requestId) → {Promise.<void>}

Cancels the authentication for a specific request.

Parameters:
NameTypeDescription
requestIdstring

The ID of the request to cancel authentication for.

Returns:
  • A promise that resolves when the command is sent.
Type: 
Promise.<void>

(async)close() → {Promise.<void>}

Unsubscribes from network events for all browsing contexts.

Returns:

A promise that resolves when the network connection is closed.

Type: 
Promise.<void>

(async)continueRequest(params) → {Promise.<void>}

Continues the network request with the provided parameters.

Parameters:
NameTypeDescription
paramsContinueRequestParameters

The parameters for continuing the request.

Throws:

If params is not an instance of ContinueRequestParameters.

Type
Error
Returns:

A promise that resolves when the command is sent.

Type: 
Promise.<void>

(async)continueResponse(params) → {Promise.<void>}

Continues the network response with the given parameters.

Parameters:
NameTypeDescription
paramsContinueResponseParameters

The parameters for continuing the response.

Throws:

If params is not an instance of ContinueResponseParameters.

Type
Error
Returns:

A promise that resolves when the command is sent.

Type: 
Promise.<void>

(async)continueWithAuth(requestId, username, password) → {Promise.<void>}

Continues the network request with authentication credentials.

Parameters:
NameTypeDescription
requestIdstring

The ID of the request to continue.

usernamestring

The username for authentication.

passwordstring

The password for authentication.

Returns:
  • A promise that resolves when the command is sent.
Type: 
Promise.<void>

(async)continueWithAuthNoCredentials(requestId) → {Promise.<void>}

Continues the network request with authentication but without providing credentials.

Parameters:
NameTypeDescription
requestIdstring

The ID of the request to continue with authentication.

Returns:
  • A promise that resolves when the command is sent.
Type: 
Promise.<void>

(async)failRequest(requestId) → {Promise.<void>}

Fails a network request.

Parameters:
NameTypeDescription
requestIdnumber

The ID of the request to fail.

Returns:
  • A promise that resolves when the command is sent.
Type: 
Promise.<void>

(async)fetchError(callback) → {Promise.<void>}

Subscribes to the 'network.fetchError' event and handles it with the provided callback.

Parameters:
NameTypeDescription
callbackfunction

The callback function to handle the event.

Returns:
  • A promise that resolves when the subscription is successful.
Type: 
Promise.<void>

(async)provideResponse(params) → {Promise.<void>}

Provides a response for the network.

Parameters:
NameTypeDescription
paramsProvideResponseParameters

The parameters for providing the response.

Throws:

If params is not an instance of ProvideResponseParameters.

Type
Error
Returns:

A promise that resolves when the command is sent.

Type: 
Promise.<void>

(async)removeIntercept(interceptId) → {Promise.<void>}

Removes an intercept.

Parameters:
NameTypeDescription
interceptIdstring

The ID of the intercept to be removed.

Returns:
  • A promise that resolves when the intercept is successfully removed.
Type: 
Promise.<void>

(async)responseCompleted(callback) → {Promise.<void>}

Subscribes to the 'network.responseCompleted' event and handles it with the provided callback.

Parameters:
NameTypeDescription
callbackfunction

The callback function to handle the event.

Returns:
  • A promise that resolves when the subscription is successful.
Type: 
Promise.<void>

(async)responseStarted(callback) → {Promise.<void>}

Subscribes to the 'network.responseStarted' event and handles it with the provided callback.

Parameters:
NameTypeDescription
callbackfunction

The callback function to handle the event.

Returns:
  • A promise that resolves when the subscription is successful.
Type: 
Promise.<void>

(async)setCacheBehavior(behavior, contextsopt) → {Promise.<void>}

Sets the cache behavior for network requests.

Parameters:
NameTypeAttributesDefaultDescription
behaviorstring

The cache behavior ("default" or "bypass")

contextsArray.<string><optional>
null

Optional array of browsing context IDs

Throws:

If behavior is invalid or context IDs are invalid

Type
Error
Returns:

A promise that resolves when the cache behavior is set

Type: 
Promise.<void>
Type anything to view search result
Selenium WebDriver JavaScript API
GitHub
npm
Modules
selenium-webdriver/chrome
selenium-webdriver/chromium
selenium-webdriver/edge
selenium-webdriver/firefox
selenium-webdriver/ie
selenium-webdriver/safari
Classes
Actions
Alert
AlertPromise
ArgumentValue
BaseLogEntry
BaseParameters
BeforeRequestSent
BoxClipRectangle
Browser
BrowsingContext
BrowsingContextInfo
BrowsingContextInspector
BrowsingContextPartitionDescriptor
Build
Builder
By
BytesValue
Capabilities
CaptureScreenshotParameters
ChannelValue
ClientWindowInfo
ClipRectangle
Command
Command
Condition
ConsoleLogEntry
ContinueRequestParameters
ContinueResponseParameters
Cookie
CookieFilter
CreateContextParameters
Credential
DetachedShadowRootError
Device
DriverService
Builder
ElementClickInterceptedError
ElementClipRectangle
ElementNotInteractableError
ElementNotSelectableError
Entry
Environment
EvaluateResultException
EvaluateResultSuccess
ExceptionDetails
Executor
FetchError
FetchTimingInfo
FileDetector
FileDetector
GenericLogEntry
Header
HttpClient
HttpResponse
Index
Initiator
Input
InsecureCertificateError
InvalidArgumentError
InvalidCharacterError
InvalidCookieDomainError
InvalidCoordinatesError
InvalidElementStateError
InvalidSelectorError
JavascriptError
JavascriptLogEntry
Keyboard
Level
LocalValue
Locator
LogManager
Logger
Message
MoveTargetOutOfBoundsError
NavigateResult
NavigationInfo
Network
NetworkInspector
NoSuchAlertError
NoSuchCookieError
NoSuchElementError
NoSuchFrameError
NoSuchSessionError
NoSuchShadowRootError
NoSuchWindowError
PartialCookie
PartitionDescriptor
PartitionKey
Pointer
Preferences
PrintResult
ProvideResponseParameters
RealmInfo
ReferenceValue
RegExpValue
RelativeBy
RemoteValue
Request
RequestData
Response
ResponseData
ResponseStarted
Result
ScriptManager
ScriptTimeoutError
Select
SeleniumServer
SerializationOptions
Server
Session
SessionNotCreatedError
ShadowRoot
ShadowRootPromise
Source
StaleElementReferenceError
Storage
StorageKeyPartitionDescriptor
TimeoutError
UnableToCaptureScreenError
UnableToSetCookieError
UnexpectedAlertOpenError
UnknownCommandError
UnknownMethodError
UnsupportedOperationError
UrlPattern
VirtualAuthenticatorOptions
WebDriver
WebDriverError
WebElement
WebElementCondition
WebElementPromise
Wheel
WindowRealmInfo
Zip
thenableWebDriverProxy
Driver
Options
ServiceBuilder
Driver
Extensions
Options
ServiceBuilder
Driver
Options
ServiceBuilder
AddonFormatError
Channel
Driver
Options
ServiceBuilder
Driver
Options
ServiceBuilder
Driver
Options
ServiceBuilder
Interfaces
Action
Client
Config
Executor
ISelect
IWebDriver
ManualConfig
Options
Cookie
PacConfig
Options
ServiceOptions
SuiteOptions
TargetBrowser
ThenableWebDriver
Timeouts
Global
Atom
Browser
Button
ByHash
Capability
CommandLineFlag
CommandSpec
CommandTransformer
Config
ErrorCode
EvaluateResultType
INTERNAL_COMPUTE_OFFSET_SCRIPT
InterceptPhase
Key
ManualConfig
Name
NonPrimitiveType
Origin
Origin
PacConfig
PageLoadStrategy
Platform
PrimitiveType
Protocol
RealmType
RemoteReferenceType
RemoteType
RequestOptions
ResultOwnership
SameSite
SpecialNumberType
StdIoOptions
THENABLE_DRIVERS
Transport
Type
Type
Type
Type
USER_AGENT
UserPromptHandler
W3C_COMMAND_MAP
ableToSwitchToFrame
addConsoleHandler
alertIsPresent
arraysEqual
binaryPaths
buildPath
buildRequest
builtTargets
check
checkCodePoint
checkLegacyResponse
checkOptions
checkedCall
checkedNodeCall
color
consoleHandler
copy
copyDir
createDriver
delayed
direct
elementIsDisabled
elementIsEnabled
elementIsNotSelected
elementIsNotVisible
elementIsSelected
elementIsVisible
elementLocated
elementTextContains
elementTextIs
elementTextMatches
elementsLocated
encodeError
ensureFileDetectorsAreEnabled
escapeCss
exec
executeCommand
exists
extractId
filter
filterNonW3CCaps
findFreePort
findInPath
formatSpawnArgs
fromWireValue
fullyResolveKeys
fullyResolved
getAddress
getAvailableBrowsers
getBinary
getBinaryPaths
getBrowsersToTestFromEnv
getBrowsingContextInstance
getHostName
getIPAddress
getJavaPath
getLevel
getLogInspectorInstance
getLogger
getLoopbackAddress
getRequestOptions
getStatus
getTestHook
headersToString
ignore
init
installConsoleHandler
isErrorResponse
isFree
isId
isIdle
isObject
isPromise
isRetryableNetworkError
isSelenium3x
legacyTimeout
load
locate
locateWith
manual
map
mkdir
mkdirp
of
pac
pad
parseHttpResponse
path
projectRoot
read
removeConsoleHandler
requireAtom
resolveCommandLineFlags
resolveWaitMessage
rmDir
sendIndex
sendRequest
serialize
setFileDetector
shouldRetryRequest
socks
splitHostAndPort
stalenessOf
start
startSeleniumServer
stat
stop
suite
suite
system
thenFinally
throwDecodedError
titleContains
titleIs
titleMatches
tmpDir
tmpFile
toExecuteAtomCommand
toMap
toWireValue
tryParse
unlink
unzip
url
urlContains
urlIs
urlMatches
waitForServer
waitForUrl
walkDir
whereIs
withTagName
write

[8]ページ先頭

©2009-2025 Movatter.jp