Drag element (web)

更新时间:
复制 MD 格式

1. Introduction

Note

Prerequisites: Open new web page or Get opened web page

Use this component to drag a specified element (control) on a page in a Chrome, Edge, or IE browser object.

2. Inputs

Note

For help with each input, see the component panel in the ROS Visual Editor.

3. Outputs

Note

You can find help for each output in the component panel of the application flow editor.

4. Component usage examples

4.1. Configuration example

  1. Set Opened browser object to v_web_obj_1, which is the output of the Open new web page or Get opened web page component.

  2. In the Target control field, select the target control that you obtained by capturing a control.

  3. Set Speed mode to "Constant speed".

  4. Set Horizontal drag distance to 150.

  5. Leave Vertical drag distance at its default value of 0.

  6. Keep the default values for the advanced options.

4.2. Example result

The component drags the specified element to the target position in a Chrome browser.

5. Example flow

Setup flow

  1. Use the Get opened web page component to retrieve the opened browser page.

  2. Use the Drag element (web) component to drag a specified element to a specified position on the opened web page.

As shown in the following figures, the flow successfully moves a slider 150 pixels horizontally on a page in a Chrome browser.