Skip to content

Browser Automation

Full web automation: navigation, interaction, data extraction, screenshots, and performance monitoring.

38 modules

ModuleDescription
クリックページ上の要素をクリック
ブラウザを閉じるブラウザを閉じてリソースを解放
コンソール取得ブラウザコンソールログを取得
Cookie 管理Cookie の取得・設定・削除
ダイアログ処理alert・confirm・prompt ダイアログの処理
ダウンロードブラウザからファイルをダウンロード
ドラッグ&ドロップ要素をドラッグ&ドロップ
デバイスエミュレートデバイスをエミュレートまたはカスタムビューポートを設定
ブラウザ確認ブラウザセッションが存在することを確認(再利用または起動)
JavaScript 実行ページ上でJavaScriptコードを実行
データ抽出ページから構造化データを抽出
要素検索ページ内の要素を検索し要素ID一覧を返す
フォーム入力自動フィールド検出によるスマートフォーム入力
フレーム切替iframe またはフレームに切り替え
位置情報シミュレートブラウザの位置情報をシミュレート
URLに移動指定URLに移動
ホバー要素にマウスオーバー
ブラウザ起動Playwright で新しいブラウザを起動
履歴ナビゲートブラウザ履歴をナビゲート(戻る、進む、リロード)
ネットワーク監視ネットワークリクエストの監視・傍受
ページ一覧開いているすべてのブラウザページ/タブを一覧表示
ページネート&抽出ページを自動でページネートし、データを抽出
PDF生成現在のページからPDFを生成
パフォーマンス指標ブラウザのパフォーマンス指標を収集
キー入力キーボードキーを押す
操作記録ユーザー操作をワークフローとして記録
ブラウザを解放ブラウザセッションを解放(所有している場合のみ閉じる)
スクリーンショット現在のページのスクリーンショットを撮影
スクロール要素・位置・方向にスクロール
選択ドロップダウンから選択
DOMスナップショット現在のページのDOMスナップショットをキャプチャ
ストレージlocalStorage・sessionStorage にアクセス
タブ管理タブの作成・切替・閉じる
ブラウザトレースブラウザのパフォーマンストレースを開始、停止、または保存
テキスト入力入力フィールドにテキストを入力
ファイルアップロードファイル入力要素にファイルをアップロード
ビューポート設定ブラウザのビューポートサイズを取得または設定
待機一定時間または要素が表示されるまで待機

Modules

クリック

browser.click

ページ上の要素をクリック

Parameters:

NameTypeRequiredDefaultDescription
click_methodselect (text, button, id, selector)NotextChoose the easiest way to identify the element you want to click
targetstringNo-e.g. "Submit", "Next Page", "Login"
selectorstringNo-CSS selector, XPath, or text selector
buttonselect (left, right, middle)NoleftWhich mouse button to use for clicking
click_countnumberNo1Number of clicks (2 for double-click, 3 for triple-click)
forcebooleanNoFalseForce click even if element is not actionable (covered, invisible)
modifiersarrayNo-Modifier keys to hold during click
timeoutnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
browserobjectBrowser session (pass-through for chaining)
statusstring操作ステータス
selectorstringクリックされたセレクター
methodstringClick method used

Example: Example

yaml
click_method: text
target: Submit

Example: Example

yaml
click_method: id
target: login-button

Example: Example

yaml
click_method: selector
selector: #submit-button

ブラウザを閉じる

browser.close

ブラウザを閉じてリソースを解放

Parameters:

NameTypeRequiredDefaultDescription
_no_paramsbooleanNoTrueThis module requires no parameters

Output:

FieldTypeDescription
statusstring操作ステータス
messagestring終了結果メッセージ

Example: Example

yaml

コンソール取得

browser.console

ブラウザコンソールログを取得

Parameters:

NameTypeRequiredDefaultDescription
levelselect (all, error, warning, info, log)NoallFilter console messages by level
timeoutnumberNo5000Maximum time to wait in milliseconds
clear_existingbooleanNoFalseClear existing messages before capturing

Output:

FieldTypeDescription
statusstring操作ステータス
messagesarrayコンソールメッセージ一覧
countnumberログ件数

Example: Example

yaml
timeout: 3000

Example: Example

yaml
level: error
timeout: 5000

browser.cookies

Cookie の取得・設定・削除

Parameters:

NameTypeRequiredDefaultDescription
actionselect (get, set, clear, delete)Yes-Action to perform on the storage
namestringNo-Name of the cookie
valuestringNo-Value of the cookie
domainstringNo-Cookie domain
pathstringNo/Cookie path
securebooleanNoFalseWhether cookie is secure (HTTPS only)
httpOnlybooleanNoFalseWhether cookie is HTTP only
expiresnumberNo-Cookie expiration time (Unix timestamp)

Output:

FieldTypeDescription
statusstring操作ステータス
cookiesarrayCookie 一覧
countnumberCookie 件数

Example: Example

yaml
action: get

Example: Example

yaml
action: get
name: session_id

Example: Example

yaml
action: set
name: user_pref
value: dark_mode
domain: example.com

Example: Example

yaml
action: clear

ダイアログ処理

browser.dialog

alert・confirm・prompt ダイアログの処理

Parameters:

NameTypeRequiredDefaultDescription
actionselect (accept, dismiss, listen)Yes-How to respond to the dialog
prompt_textstringNo-Text to enter in prompt dialog (for accept action)
timeoutnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstring操作ステータス
messagestringダイアログメッセージ
typestringダイアログタイプ
default_valuestringダイアログのデフォルト値

Example: Example

yaml
action: accept

Example: Example

yaml
action: dismiss

Example: Example

yaml
action: accept
prompt_text: Hello World

Example: Example

yaml
action: listen
timeout: 5000

ダウンロード

browser.download

ブラウザからファイルをダウンロード

Parameters:

NameTypeRequiredDefaultDescription
selectorstringNo-CSS selector, XPath, or text selector to find the element
save_pathstringYes-Path where to save the downloaded file
timeout_msnumberNo60000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstring操作ステータス
pathstringファイルパス
filenamestringファイル名
sizenumberファイルサイズ

Example: Example

yaml
selector: #download-btn
save_path: /downloads/report.pdf

Example: Example

yaml
selector: a.download
save_path: /downloads/large-file.zip
timeout_ms: 120000

ドラッグ&ドロップ

browser.drag

要素をドラッグ&ドロップ

Parameters:

NameTypeRequiredDefaultDescription
sourcestringYes-CSS selector, XPath, or text selector to find the element
targetstringYes-CSS selector, XPath, or text selector to find the element
source_positionobjectNo-Position within source element {x, y} as percentages
target_positionobjectNo-Position within target element {x, y} as percentages
timeoutnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstring操作ステータス
sourcestringソース要素位置
targetstringターゲット要素位置

Example: Example

yaml
source: #item1
target: #dropzone

Example: Example

yaml
source: .draggable
target: .container
target_position: {"x": 0.5, "y": 0.5}

デバイスエミュレート

browser.emulate

デバイスをエミュレートまたはカスタムビューポートを設定

Parameters:

NameTypeRequiredDefaultDescription
deviceselect (iphone_12, iphone_14, iphone_14_pro_max, iphone_se, pixel_7, pixel_5, galaxy_s21, galaxy_s23, ipad_pro, ipad_mini, galaxy_tab_s8, desktop_chrome, desktop_firefox, desktop_safari, desktop_edge, laptop, macbook_pro, custom)Yes-エミュレートするデバイス名(例:iPhone 13)
widthnumberNo-ビューポートの幅(ピクセル)
heightnumberNo-ビューポートの高さ(ピクセル)
user_agentstringNo-カスタムユーザーエージェント文字列
is_mobilebooleanNo-モバイルデバイスをエミュレートするかどうか
has_touchbooleanNo-デバイスにタッチサポートがあるかどうか
device_scale_factornumberNo-デバイスピクセル比

Output:

FieldTypeDescription
statusstring操作ステータス(成功/エラー)
devicestringエミュレートされたデバイス名
viewportobject現在のビューポート寸法
is_mobilebooleanモバイルエミュレーションが有効かどうか

Example: Example

yaml
device: iphone_14

Example: Example

yaml
device: ipad_pro

Example: Example

yaml
device: custom
width: 400
height: 800
is_mobile: true
has_touch: true
device_scale_factor: 2

Example: Example

yaml
device: desktop_chrome
user_agent: CustomBot/1.0

ブラウザ確認

browser.ensure

ブラウザセッションが存在することを確認(再利用または起動)

Parameters:

NameTypeRequiredDefaultDescription
headlessbooleanNoFalseRun browser without visible window
widthnumberNo1280Browser viewport width in pixels
heightnumberNo720Browser viewport height in pixels

Output:

FieldTypeDescription
statusstringブラウザが起動または再利用されたかどうか
messagestringブラウザが起動または再利用されたかどうか
is_ownerbooleanブラウザが起動または再利用されたかどうか

Example: Example

yaml
headless: false

Example: Example

yaml
headless: true

JavaScript 実行

browser.evaluate

ページ上でJavaScriptコードを実行

Parameters:

NameTypeRequiredDefaultDescription
scriptstringYes-JavaScript code to execute (can use return statement)
argsarrayNo-Arguments to pass to the script function

Output:

FieldTypeDescription
statusstring操作ステータス
resultany実行結果

Example: Example

yaml
script: return document.title

Example: Example

yaml
script: return document.querySelectorAll("a").length

Example: Example

yaml
script: (selector) => document.querySelector(selector)?.textContent
args: ["#header"]

Example: Example

yaml
script: document.body.style.backgroundColor = "red"; return "done"

データ抽出

browser.extract

ページから構造化データを抽出

Parameters:

NameTypeRequiredDefaultDescription
selectorstringYes-CSS selector, XPath, or text selector to find the element
limitnumberNo-Maximum number of items to extract
fieldsobjectNo-Define fields to extract from each item

Output:

FieldTypeDescription
statusstring操作ステータス
dataarray抽出データ
countnumber抽出件数

Example: Example

yaml
selector: .g
limit: 10
fields: {"title": {"selector": "h3", "type": "text"}, "url": {"selector": "a", "type": "attribute", "attribute": "href"}}

要素検索

browser.find

ページ内の要素を検索し要素ID一覧を返す

Parameters:

NameTypeRequiredDefaultDescription
selectorstringYes-CSS selector, XPath, or text selector to find the element
limitnumberNo-Maximum number of items to extract

Output:

FieldTypeDescription
statusstring操作ステータス
countnumber見つかった要素数
element_idsarray要素ID一覧

Example: Find search results

yaml
selector: div.tF2Cxc
limit: 10

フォーム入力

browser.form

自動フィールド検出によるスマートフォーム入力

Parameters:

NameTypeRequiredDefaultDescription
form_selectorstringNo-CSS selector for the form element (optional)
dataobjectYes-Key-value pairs to fill (key = field name/id, value = content)
field_mappingobjectNo-Custom selector mapping
clear_before_fillbooleanNoTrueClear existing field values before filling
submitbooleanNoFalseSubmit form after filling
submit_selectorstringNo-CSS selector for submit button
delay_between_fields_msnumberNo100Delay between filling each field (for more human-like behavior)

Output:

FieldTypeDescription
filled_fieldsarray各フィールド入力間の遅延(より人間らしい動作のため)
failed_fieldsarray入力されたフィールドのリスト
submittedboolean入力されたフィールドのリスト

Example: Example

yaml
data: {"email": "user@example.com", "password": "secret123"}
submit: true

Example: Example

yaml
data: {"username": "john_doe", "bio": "Hello world"}
field_mapping: {"username": "#user-name-input", "bio": "textarea.bio-field"}

フレーム切替

browser.frame

iframe またはフレームに切り替え

Parameters:

NameTypeRequiredDefaultDescription
selectorstringNo-CSS selector, XPath, or text selector to find the element
namestringNo-Name attribute of the frame (alternative to selector)
urlstringNo-URL pattern to match frame (alternative to selector)
actionstringNoenterFrame action to perform
timeoutnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstring操作ステータス
frame_urlstringフレームURL
frame_namestringフレーム名
framesarrayフレーム一覧

Example: Example

yaml
selector: iframe#content-frame

Example: Example

yaml
name: main-content

Example: Example

yaml
action: exit

Example: Example

yaml
action: list

位置情報シミュレート

browser.geolocation

ブラウザの位置情報をシミュレート

Parameters:

NameTypeRequiredDefaultDescription
latitudenumberYes-Latitude coordinate (-90 to 90)
longitudenumberYes-Longitude coordinate (-180 to 180)
accuracynumberNo100Position accuracy in meters

Output:

FieldTypeDescription
statusstring操作ステータス
locationobject位置情報

Example: Example

yaml
latitude: 37.7749
longitude: -122.4194

Example: Example

yaml
latitude: 51.5074
longitude: -0.1278
accuracy: 10

Example: Example

yaml
latitude: 35.6762
longitude: 139.6503

URLに移動

browser.goto

指定URLに移動

Parameters:

NameTypeRequiredDefaultDescription
urlstringYes-URL to navigate to
wait_untilselect (load, domcontentloaded, networkidle)NodomcontentloadedWhen to consider navigation complete
timeout_msnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstring操作ステータス
urlstring実際に開いたURL

Example: Example

yaml
url: https://www.google.com
wait_until: domcontentloaded

ホバー

browser.hover

要素にマウスオーバー

Parameters:

NameTypeRequiredDefaultDescription
selectorstringYes-CSS selector, XPath, or text selector to find the element
timeout_msnumberNo30000Maximum time to wait in milliseconds
positionobjectNo-Click position relative to element (0-1 range)

Output:

FieldTypeDescription
statusstring操作ステータス
selectorstringホバーしたセレクター

Example: Example

yaml
selector: .menu-item

Example: Example

yaml
selector: #dropdown-trigger
timeout_ms: 5000

ブラウザ起動

browser.launch

Playwright で新しいブラウザを起動

Parameters:

NameTypeRequiredDefaultDescription
headlessbooleanNoFalseRun browser without visible window
widthnumberNo1280Browser viewport width in pixels
heightnumberNo720Browser viewport height in pixels
browser_typeselect (chromium, firefox, webkit)Nochromium使用するブラウザエンジン(chromium、firefox、webkit)
proxystringNo-プロキシサーバーのURL
user_agentstringNo-カスタムユーザーエージェント文字列
localestringNoen-USBrowser locale (e.g. en-US, zh-TW, ja-JP)
slow_monumberNo0指定されたミリ秒で操作を遅くする
record_video_dirstringNo-Directory to save recorded videos (enables Playwright video recording)

Output:

FieldTypeDescription
statusstring操作ステータス
messagestring起動結果メッセージ
browser_typestring起動したブラウザのタイプ
headlessbooleanブラウザがヘッドレスで実行されているかどうか
viewportobject現在のビューポート寸法

Example: Example

yaml
headless: true

Example: Example

yaml
headless: false

履歴ナビゲート

browser.navigation

ブラウザ履歴をナビゲート(戻る、進む、リロード)

Parameters:

NameTypeRequiredDefaultDescription
actionselect (back, forward, reload)YesreloadWhich navigation action to perform
wait_untilselect (load, domcontentloaded, networkidle)NodomcontentloadedWhen to consider navigation complete
timeout_msnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstring操作ステータス(成功/エラー)
actionstring実行されたナビゲーションアクション
urlstringナビゲーション後の現在のURL

Example: Example

yaml
action: back

Example: Example

yaml
action: forward

Example: Example

yaml
action: reload
wait_until: networkidle

ネットワーク監視

browser.network

ネットワークリクエストの監視・傍受

Parameters:

NameTypeRequiredDefaultDescription
actionselect (monitor, block, intercept)Yes-Network action to perform
url_patternstringNo-Regex pattern to match request URLs
resource_typestringNo-Filter by resource type (document, script, image, etc)
timeoutnumberNo30000Maximum time to wait in milliseconds
mock_responseobjectNo-Response to return for intercepted requests

Output:

FieldTypeDescription
statusstring操作ステータス
requestsarrayリクエスト一覧
blocked_countnumberブロック件数

Example: Example

yaml
action: monitor
url_pattern: .*api.*
timeout: 10000

Example: Example

yaml
action: block
resource_type: image

Example: Example

yaml
action: intercept
url_pattern: .*users.*
mock_response: {"status": 200, "body": "{\"users\": []}"}

ページ一覧

browser.pages

開いているすべてのブラウザページ/タブを一覧表示

Parameters:

NameTypeRequiredDefaultDescription
include_detailsbooleanNoTrue各ページの詳細情報を含める
include_content_infobooleanNoFalse各ページのコンテンツタイプ情報を含める

Output:

FieldTypeDescription
statusstring操作ステータス(成功/エラー)
pagesarray開いているページの一覧
countnumber開いているページの数
current_indexnumber現在アクティブなページのインデックス

Example: Example

yaml
include_details: true

Example: Example

yaml
include_details: false

Example: Example

yaml
include_details: true
include_content_info: true

ページネート&抽出

browser.pagination

ページを自動でページネートし、データを抽出

Parameters:

NameTypeRequiredDefaultDescription
modeselect (next_button, infinite_scroll, page_numbers, load_more)Nonext_buttonHow to navigate between pages
item_selectorstringYes-CSS selector for items to extract on each page
fieldsobjectNo-Field definitions {name: {selector, attribute?}}
next_selectorstringNo-CSS selector for next page button
load_more_selectorstringNo-CSS selector for load more button
max_pagesnumberNo10Maximum number of pages to process (0 = unlimited)
max_itemsnumberNo0Stop after collecting this many items (0 = unlimited)
wait_between_pages_msnumberNo1000Wait time between page navigations
wait_for_selectorstringNo-Wait for this element after page change
scroll_amountnumberNo1000Pixels to scroll for infinite scroll mode
no_more_indicatorstringNo-Selector that appears when no more pages (stops pagination)

Output:

FieldTypeDescription
itemsarrayページがなくなったときに表示されるセレクタ(ページネーション停止)
total_itemsintegerすべてのページから抽出されたアイテム
pages_processedintegerすべてのページから抽出されたアイテム
stopped_reasonstring処理されたページ数

Example: Example

yaml
mode: next_button
item_selector: .product-card
fields: {"title": {"selector": ".title"}, "price": {"selector": ".price"}, "link": {"selector": "a", "attribute": "href"}}
next_selector: .pagination .next
max_pages: 5

Example: Example

yaml
mode: infinite_scroll
item_selector: .feed-item
fields: {"content": {"selector": ".content"}, "author": {"selector": ".author"}}
max_items: 100
no_more_indicator: .end-of-feed

Example: Example

yaml
mode: load_more
item_selector: .list-item
load_more_selector: button.load-more
max_pages: 10

PDF生成

browser.pdf

現在のページからPDFを生成

Parameters:

NameTypeRequiredDefaultDescription
pathstringNo-Path where the output file will be saved
page_sizeselect (A4, Letter, Legal, A3, A5)NoA4Page size format
orientationselect (portrait, landscape)NoportraitPage orientation
print_backgroundbooleanNoTrueInclude background graphics
scalenumberNo1Scale of the webpage rendering (0.1-2)
marginnumberNo20Page margin in millimeters
headerstringNo-Header text for each page
footerstringNo-Footer text for each page

Output:

FieldTypeDescription
statusstring操作ステータス
pathstringPDFファイルパス
sizenumberPDFファイルサイズ

Example: Example

yaml
path: /output/page.pdf

Example: Example

yaml
path: /output/landscape.pdf
landscape: true

Example: Example

yaml
path: /output/custom.pdf
margin: {"top": "1cm", "bottom": "1cm", "left": "2cm", "right": "2cm"}

パフォーマンス指標

browser.performance

ブラウザのパフォーマンス指標を収集

Parameters:

NameTypeRequiredDefaultDescription
metricsarrayNo['all']収集するパフォーマンス指標
timeout_msnumberNo3000タイムアウト(ミリ秒)
setup_observersbooleanNoTrue収集前にパフォーマンスオブザーバーを設定

Output:

FieldTypeDescription
statusstring操作ステータス(成功/エラー)
metricsobject収集されたパフォーマンス指標

Example: Example

yaml
metrics: ["all"]
timeout_ms: 5000

Example: Example

yaml
metrics: ["lcp", "fcp", "cls"]

Example: Example

yaml
metrics: ["ttfb", "domContentLoaded", "load"]
timeout_ms: 0

キー入力

browser.press

キーボードキーを押す

Parameters:

NameTypeRequiredDefaultDescription
keystringYes-The key to press (e.g., Enter, Escape, Tab)

Output:

FieldTypeDescription
statusstring操作ステータス
keystring押されたキー

Example: Example

yaml
key: Enter

Example: Example

yaml
key: Escape

操作記録

browser.record

ユーザー操作をワークフローとして記録

Parameters:

NameTypeRequiredDefaultDescription
actionstringYes-Recording action to perform
output_formatstringNoyamlFormat for recorded workflow
output_pathstringNo-Path where the output file will be saved

Output:

FieldTypeDescription
statusstring操作ステータス
recordingarray記録状態
workflowstring記録されたワークフロー

Example: Example

yaml
action: start

Example: Example

yaml
action: stop
output_format: yaml

Example: Example

yaml
action: get

ブラウザを解放

browser.release

ブラウザセッションを解放(所有している場合のみ閉じる)

Parameters:

NameTypeRequiredDefaultDescription
forcebooleanNoFalseこのテンプレートが所有していなくてもブラウザを閉じる

Output:

FieldTypeDescription
statusstringこのテンプレートが所有していなくてもブラウザを閉じる
messagestring実行されたアクション
was_ownerboolean実行されたアクション

Example: Example

yaml

Example: Example

yaml
force: true

スクリーンショット

browser.screenshot

現在のページのスクリーンショットを撮影

Parameters:

NameTypeRequiredDefaultDescription
pathstringNoscreenshot.pngPath where the output file will be saved
full_pagebooleanNoFalseCapture the entire scrollable page
formatselect (png, jpeg, webp)NopngImage format for the screenshot
qualitynumberNo-Quality for JPEG/WebP format (0-100)

Output:

FieldTypeDescription
statusstring操作ステータス
filepathstringファイルパス

Example: Example

yaml
path: output/page.png

スクロール

browser.scroll

要素・位置・方向にスクロール

Parameters:

NameTypeRequiredDefaultDescription
selectorstringNo-CSS selector, XPath, or text selector to find the element
directionselect (down, up, left, right)NodownDirection to scroll the page
amountnumberNo500Pixels to scroll (ignored if selector is provided)
behaviorselect (smooth, instant)NosmoothHow the scroll animation behaves

Output:

FieldTypeDescription
statusstring操作ステータス
scrolled_toobjectスクロール位置

Example: Example

yaml
selector: #footer

Example: Example

yaml
direction: down
amount: 500

Example: Example

yaml
direction: up
amount: 10000
behavior: smooth

選択

browser.select

ドロップダウンから選択

Parameters:

NameTypeRequiredDefaultDescription
selectorstringYes-CSS selector, XPath, or text selector to find the element
valuestringNo-Option value attribute to select
labelstringNo-Option text content to select (alternative to value)
indexnumberNo-Option index to select (0-based)
timeoutnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstring操作ステータス
selectedarray選択された値
selectorstringセレクター

Example: Example

yaml
selector: select#country
value: us

Example: Example

yaml
selector: select#country
label: United States

Example: Example

yaml
selector: select#country
index: 2

DOMスナップショット

browser.snapshot

現在のページのDOMスナップショットをキャプチャ

Parameters:

NameTypeRequiredDefaultDescription
formatselect (html, mhtml, text)Nohtml出力形式(htmlまたはtext)
selectorstringNo-特定の要素をスナップショットするためのCSSセレクタ
pathstringNo-スナップショットを保存するパス

Output:

FieldTypeDescription
statusstring操作ステータス(成功/エラー)
formatstringスナップショットの形式
contentstringスナップショットの内容
pathstringスナップショットが保存されたパス
size_bytesnumberスナップショットのサイズ(バイト)

Example: Example

yaml
format: html

Example: Example

yaml
format: mhtml
path: /tmp/page.mhtml

Example: Example

yaml
format: text
selector: article.main-content

Example: Example

yaml
format: html
selector: #main
path: /tmp/section.html

ストレージ

browser.storage

localStorage・sessionStorage にアクセス

Parameters:

NameTypeRequiredDefaultDescription
actionselect (get, set, remove, clear, keys, length)Yes-Action to perform on the storage
typeselect (local, session)NolocalBrowser storage type to access
keystringNo-Storage key
valuestringNo-Value to store

Output:

FieldTypeDescription
statusstring操作ステータス
valueany取得した値
keysarrayキー一覧
lengthnumber項目数

Example: Example

yaml
action: get
type: local
key: user_token

Example: Example

yaml
action: set
type: session
key: temp_data
value: {"id": 123}

Example: Example

yaml
action: clear
type: local

Example: Example

yaml
action: keys
type: local

タブ管理

browser.tab

タブの作成・切替・閉じる

Parameters:

NameTypeRequiredDefaultDescription
actionstringYes-Tab action to perform
urlstringNo-URL to navigate to
indexnumberNo-Tab index to switch to or close (0-based)

Output:

FieldTypeDescription
statusstring操作ステータス
tab_countnumberタブ総数
current_indexnumber現在のタブインデックス
tabsarrayタブ一覧

Example: Example

yaml
action: new
url: https://example.com

Example: Example

yaml
action: switch
index: 0

Example: Example

yaml
action: close

Example: Example

yaml
action: list

ブラウザトレース

browser.trace

ブラウザのパフォーマンストレースを開始、停止、または保存

Parameters:

NameTypeRequiredDefaultDescription
actionstringYes-トレースアクション(開始、停止、保存)
categoriesarrayNo['devtools.timeline']キャプチャするトレースカテゴリ
screenshotsbooleanNoTrueトレースにスクリーンショットを含める
pathstringNo-トレースファイルを保存するパス

Output:

FieldTypeDescription
statusstring操作ステータス(成功/エラー)
tracingbooleanトレースが現在アクティブかどうか
pathstringトレースが保存されたパス
size_bytesnumberトレースファイルのサイズ(バイト)

Example: Example

yaml
action: start
screenshots: true

Example: Example

yaml
action: start
categories: ["devtools.timeline", "v8.execute"]
screenshots: false

Example: Example

yaml
action: stop
path: /tmp/performance-trace.json

テキスト入力

browser.type

入力フィールドにテキストを入力

Parameters:

NameTypeRequiredDefaultDescription
type_methodselect (placeholder, label, name, id, selector)NoplaceholderChoose the easiest way to identify the input field
targetstringNo-e.g. "Enter your email", "Email", "username"
selectorstringNo-CSS selector, XPath, or text selector
input_typeselect (text, password, email)NotextType of input field — use Password to mask the value in the builder
textstringYes-
sensitive_textstringYes-
delaynumberNo0Delay between keystrokes in milliseconds
clearbooleanNoFalseClear the input field before typing
timeoutnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
browserobjectBrowser session (pass-through for chaining)
statusstring操作ステータス
selectorstring入力セレクター
methodstringType method used

Example: Example

yaml
type_method: placeholder
target: Enter your email
text: user@example.com

Example: Example

yaml
type_method: label
target: Email
text: user@example.com

Example: Example

yaml
type_method: placeholder
target: Password
input_type: password
sensitive_text: ${env.LOGIN_PASSWORD}

Example: Example

yaml
type_method: selector
selector: #email
text: user@example.com

ファイルアップロード

browser.upload

ファイル入力要素にファイルをアップロード

Parameters:

NameTypeRequiredDefaultDescription
selectorstringYes-CSS selector, XPath, or text selector to find the element
file_pathstringYes-Local path to the file to upload
timeout_msnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstring操作ステータス
filenamestringファイル名
sizenumberファイルサイズ
selectorstringセレクター

Example: Example

yaml
selector: input[type="file"]
file_path: /path/to/image.png

Example: Example

yaml
selector: #file-upload
file_path: /path/to/document.pdf

ビューポート設定

browser.viewport

ブラウザのビューポートサイズを取得または設定

Parameters:

NameTypeRequiredDefaultDescription
widthnumberYes1280ビューポートの幅(ピクセル)
heightnumberYes720ビューポートの高さ(ピクセル)

Output:

FieldTypeDescription
statusstring操作ステータス(成功/エラー)
viewportobject現在のビューポート寸法
previous_viewportobject以前のビューポート寸法

Example: Example

yaml
width: 375
height: 667

Example: Example

yaml
width: 768
height: 1024

Example: Example

yaml
width: 1920
height: 1080

Example: Example

yaml
width: 1366
height: 768

待機

browser.wait

一定時間または要素が表示されるまで待機

Parameters:

NameTypeRequiredDefaultDescription
duration_msnumberNo1000Duration of the operation in milliseconds
selectorstringNo-CSS selector, XPath, or text selector to find the element
stateselect (visible, hidden, attached, detached)Novisible待機する状態(表示、非表示、付加、分離)
timeout_msnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstring操作ステータス
selectorstring待機セレクター
duration_msnumber待機時間(ミリ秒)

Example: Example

yaml
duration_ms: 2000

Example: Example

yaml
selector: #loading-complete
timeout_ms: 5000

Released under the Apache 2.0 License.