1. Introduction
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
For help with each input, see the component panel in the ROS Visual Editor.
3. Outputs
You can find help for each output in the component panel of the application flow editor.
4. Component usage examples
4.1. Configuration example
Set
Opened browser objectto v_web_obj_1, which is the output of the Open new web page or Get opened web page component.In the
Target controlfield, select thetarget controlthat you obtained by capturing a control.Set
Speed modeto "Constant speed".Set
Horizontal drag distanceto 150.Leave
Vertical drag distanceat its default value of 0.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
Use the Get opened web page component to retrieve the opened browser page.
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.