Locator.hover() 方法
將滑鼠懸停在找到的元素上。
簽名
class Locator {
hover<ElementType extends Element>(
this: Locator<ElementType>,
options?: Readonly<ActionOptions>,
): Promise<void>;
}
參數
參數 | 類型 | 描述 |
---|---|---|
this | Locator<ElementType> | |
options | Readonly<ActionOptions> | (選填) |
返回
Promise<void>