ElementHandle.drop() 方法
drop(): Promise<void>
将给定的元素拖放到当前元素上。
签名
class ElementHandle {
drop(
this: ElementHandle<Element>,
element: ElementHandle<Element>,
): Promise<void>;
}
参数
|
参数 |
类型 |
说明 |
|---|---|---|
|
this |
ElementHandle<Element> | |
|
element |
ElementHandle<Element> |
返回值:
Promise<void>
drop(): Promise<void>
警告:此 API 现已废弃。
不再支持。
签名
class ElementHandle {
drop(
this: ElementHandle<Element>,
data?: Protocol.Input.DragData,
): Promise<void>;
}
参数
|
参数 |
类型 |
说明 |
|---|---|---|
|
this |
ElementHandle<Element> | |
|
data |
Protocol.Input.DragData |
(可选) |
返回值:
Promise<void>