> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 拖拽元素(web)

## 指令说明

**描述：** 在指定的网页中将元素拖拽到指定位置。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/2nc_spg9_b4MXqPM/helpcenter/commands/web-automation/images/web-drag-01.png?fit=max&auto=format&n=2nc_spg9_b4MXqPM&q=85&s=a3faa40c17f6455d9a5c46020a81d9fa" alt="拖拽元素(web)指令参数面板" width="660" height="548" data-path="helpcenter/commands/web-automation/images/web-drag-01.png" />

    | 参数       | 说明                                                         |
    | -------- | ---------------------------------------------------------- |
    | **网页对象** | 选择一个之前通过【打开网页】或【获取已打开的网页对象】指令创建的网页对象                       |
    | **操作目标** | 从元素库中选择一个已捕获的元素或通过「捕获新元素」来捕获新的网页元素作为操作目标                   |
    | **拖拽方式** | 拖拽至目标点：手动输入位置或按Ctrl+Alt输入当前鼠标位置<br />拖拽至目标元素上：选择一个元素当作操作目标 |
  </Tab>

  <Tab title="高级">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/2nc_spg9_b4MXqPM/helpcenter/commands/web-automation/images/web-drag-02.png?fit=max&auto=format&n=2nc_spg9_b4MXqPM&q=85&s=14ebbb8bb784e26926d538e102f5dc3c" alt="拖拽元素(web)指令高级参数面板" width="660" height="382" data-path="helpcenter/commands/web-automation/images/web-drag-02.png" />

    | 参数            | 说明            |
    | ------------- | ------------- |
    | **延迟时间(s)**   | 指令执行完成后的等待时间  |
    | **鼠标移动速度**    | 瞬间，快速，中速，慢速   |
    | **等待元素存在(s)** | 等待目标元素存在的超时时间 |
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/2nc_spg9_b4MXqPM/helpcenter/commands/web-automation/images/web-drag-03.png?fit=max&auto=format&n=2nc_spg9_b4MXqPM&q=85&s=253ff602348f4eb9a7fa72f1d646022a" alt="拖拽元素(web)使用示例 - 流程搭建" width="1368" height="294" data-path="helpcenter/commands/web-automation/images/web-drag-03.png" />

**该流程执行逻辑：**

使用【打开网页】指令打开目标网页

使用【拖拽元素(web)】指令选择源元素和目标元素

执行拖拽操作，将源元素移动到目标位置

### 效果展示

元素被成功拖拽到目标位置。

<img src="https://mintcdn.com/bazhuayu-rpa-docs/2nc_spg9_b4MXqPM/helpcenter/commands/web-automation/images/web-drag-04.png?fit=max&auto=format&n=2nc_spg9_b4MXqPM&q=85&s=1bbba144a0a40d9a410cc6aa87cca960" alt="拖拽元素(web)使用示例 - 效果展示" width="1373" height="320" data-path="helpcenter/commands/web-automation/images/web-drag-04.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
