Press Key
要素に対してキーを押下します。selectorを指定しない場合はページに対して押下します(例:Enter、Tab、Escape)。
WebブラウザSeleniumBrowserPressKey
概要
要素に対してキーを押下します。selectorを指定しない場合はページに対して押下します(例:Enter、Tab、Escape)。
Press a keyboard key on an element, or on the page if no selector is given (e.g. Enter, Tab, Escape).
パラメータ
| パラメータ | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
| Browser instance | variable | 必須 | browser | Name that identifies this browser session. |
| Selector type | dropdownCSS · XPath · ID · Name · Text | 必須 | CSS | |
| Selector (optional) | string | 任意 | Blank = press on the page. 例: #search 変数に対応 | |
| Key | string | 必須 | 例: Enter |