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

Logger

An object used to log debugging messages. Loggers use a hierarchical, dot-separated naming scheme. For instance, "foo" is considered the parent of the "foo.bar" and an ancestor of "foo.bar.baz".

Each logger may be assigned a log level, which controls which level of messages will be reported to the handlers attached to this instance. If a log level is not explicitly set on a logger, it will inherit its parent.

This class should never be directly instantiated. Instead, users should obtain logger references using the getLogger() function.

Constructor

new Logger(name, opt_levelopt)

Parameters:
NameTypeAttributesDescription
namestring

the name of this logger.

opt_levelLevel<optional>

the initial level for this logger.

Methods

addHandler(handler)

Adds a handler to this logger. The handler will be invoked for each message logged with this instance, or any of its descendants.

Parameters:
NameTypeDescription
handlerfunction

the handler to add.

debug(loggable)

Logs a message at theLevel.DEBUG log level.

Parameters:
NameTypeDescription
loggablestring |function

the message to log, or a function that will return the message.

fine(loggable)

Logs a message at theLevel.FINE log level.

Parameters:
NameTypeDescription
loggablestring |function

the message to log, or a function that will return the message.

finer(loggable)

Logs a message at theLevel.FINER log level.

Parameters:
NameTypeDescription
loggablestring |function

the message to log, or a function that will return the message.

finest(loggable)

Logs a message at theLevel.FINEST log level.

Parameters:
NameTypeDescription
loggablestring |function

the message to log, or a function that will return the message.

getEffectiveLevel() → (non-null) {Level}

Returns:

the effective level for this logger.

Type: 
Level

getLevel() → {Level}

Returns:

the log level for this logger.

Type: 
Level

getName() → {string}

Returns:

the name of this logger.

Type: 
string

info(loggable)

Logs a message at theLevel.INFO log level.

Parameters:
NameTypeDescription
loggablestring |function

the message to log, or a function that will return the message.

isLoggable(levelnon-null) → {boolean}

Parameters:
NameTypeDescription
levelLevel

the level to check.

Returns:

whether messages recorded at the given level are loggable by this instance.

Type: 
boolean

log(levelnon-null, loggable)

Logs a message at the given level. The message may be defined as a string or as a function that will return the message. If a function is provided, it will only be invoked if this logger's effective log level includes the givenlevel.

Parameters:
NameTypeDescription
levelLevel

the level at which to log the message.

loggablestring |function

the message to log, or a function that will return the message.

removeHandler(handler) → {boolean}

Removes a handler from this logger.

Parameters:
NameTypeDescription
handlerfunction

the handler to remove.

Returns:

whether a handler was successfully removed.

Type: 
boolean

setLevel(level)

Parameters:
NameTypeDescription
levelLevel

the new level for this logger, ornull if the logger should inherit its level from its parent logger.

severe(loggable)

Logs a message at theLevel.SEVERE log level.

Parameters:
NameTypeDescription
loggablestring |function

the message to log, or a function that will return the message.

warning(loggable)

Logs a message at theLevel.WARNING log level.

Parameters:
NameTypeDescription
loggablestring |function

the message to log, or a function that will return the message.

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