Nightwatch logo of an owl
ガイド
API
概要
ブログ
Search
GitHub
Discord
3.7.0
以前のバージョン 2.6.19
バージョン 1.7
バージョン 0.9
すべてのバージョン
ガイド
API
概要
ブログ
Github
Discord
リリースノート
(現在のバージョン 3.7.0)
APIページ
ブラウザ
概要
axeInject
axeRun
戻る
captureBrowserConsoleLogs
captureBrowserExceptions
debug
enablePerformanceMetrics
end
進む
frame
frameParent
getCurrentUrl
getLog
getLogTypes
getPerformanceMetrics
getTitle
init
isLogAvailable
navigateTo
pause
perform
quit
refresh
registerBasicAuth
saveScreenshot
saveSnapshot
screenshot
session
sessions
setDeviceDimensions
setGeolocation
status
submit
takeHeapSnapshot
timeouts
timeoutsAsyncScript
timeoutsImplicitWait
url
urlHash
useCss
useXpath
waitForElementNotPresent
waitForElementNotVisible
waitForElementPresent
waitForElementVisible
waitUntil
.alerts
accept
dismiss
getText
setText
.appium
getContext
getContexts
getCurrentActivity
getCurrentPackage
getGeolocation
getOrientation
hideKeyboard
isKeyboardShown
longPressKeyCode
pressKeyCode
setContext
setGeolocation
setOrientation
startActivity
.assert
概要
attributeContains
attributeEquals
attributeMatches
cssProperty
domPropertyContains
domPropertyEquals
domPropertyMatches
elementsCount
elementPresent
hasClass
hasAttribute
hasDescendants
enabled
selected
textContains
textEquals
textMatches
titleContains
titleEquals
titleMatches
urlContains
urlEquals
urlMatches
valueContains
valueEquals
visible
.chrome
概要
.cookies
delete
deleteAll
get
getAll
set
.document
injectScript
source
executeScript
executeAsyncScript
.element
概要
要素の検索
find
findAll
findByAltText
findAllByAltText
findByPlaceholderText
findAllByPlaceholderText
findByRole
findAllByRole
findByLabelText
findByText
findAllByText
getFirstElementChild
getLastElementChild
getNextElementSibling
getPreviousElementSibling
getShadowRoot
要素操作
check
clear
click
dragAndDrop
sendKeys
setAttribute
setPassword
setProperty
setValue
submit
update
upload
submitForm
uncheck
updateValue
uploadFile
要素の状態
clearValue
elementActive
getAccessibleName
getAriaRole
getAttribute
getCssProperty
getProperty
getRect
getElementSize
getTagName
getText
getValue
getId
hasDescendants
isEnabled
isSelected
isVisible
isPresent
ユーザーアクション
waitUntil
clickAndHold
doubleClick
rightClick
moveTo
Selenium Actions API
スクリーンショット
takeScreenshot
.expect
概要
言語チェーン
equal() / contain() / match()
startWith() / endWith()
.not
before() / after()
.cookie()
.element()
.a() / .an()
.active
.attribute(name)
.css(property)
.enabled
.present
.property(name)
.selected
.text
.value
.visible
.elements()
.count
.title()
.url()
.firefox
概要
.network
captureRequests
mockResponse
setConditions
.window
close
fullscreen
getAllHandles
getHandle
getPosition
getRect
getSize
maximize
minimize
open
setPosition
setRect
setSize
switchTo
ページオブジェクト
概要
インスタンス
コマンド
ユーザーアクション
概要
使用可能なアクション
アクションティック
動作例
プログラムAPI
プログラムAPIの使用
.back()
編集の提案
可能な場合、ブラウザの履歴を後ろに移動します(ブラウザの戻るボタンを押すことと同等です)。
使用方法
パラメータ
名前
型
説明
callback
オプション
関数
コマンドが完了したときに呼び出されるオプションのコールバック関数。
W3C WebDriver仕様
/#back