本文へスキップ
バージョン: 22.5.0

Locator.fill() メソッド

ロケータによって識別された入力欄に、指定された値を入力します。入力欄の種類は実行時に判定され、種類に基づいて適切な入力方法が選択されます。contenteditable、セレクタ、入力欄がサポートされています。

シグネチャ:

class Locator {
fill<ElementType extends Element>(
this: Locator<ElementType>,
value: string,
options?: Readonly<ActionOptions>
): Promise<void>;
}

パラメータ

パラメータ説明
thisLocator<ElementType>
value文字列
optionsReadonly<ActionOptions>(オプション)

戻り値

Promise<void>