Get number of similar controls (web page)
1. Component introduction
Prerequisites: Open new web page or Get opened web page
Use this component to retrieve the number of similar controls on a page in a specified Chrome, Edge, or Internet Explorer (IE) browser object.
2. Inputs
For information about each input, see the help text in the component panel of the visual editor.
3. Outputs
For information about each output, see the help text in the component panel of the visual editor.
4. Component usage example
4.1. Configuration example
For the
Opened browser objectparameter, select `v_web_obj_1`. This value is the output of the prerequisite Open new web page or Get opened web page component.For the
Target controlparameter, select the captured similar control.Keep the default values for the other options.
4.2. Example result
The component retrieves the number of similar controls in the Chrome browser.
5. Example flow
Setup flow
Use the Open new web page component to open the Chrome browser and navigate to the Baidu home page.
Use the Get number of similar controls (web page) component to retrieve the number of similar controls.
Use the Record log component to record the number of similar controls in the log panel.
Result
The flow navigates to the Baidu home page in the Chrome browser and retrieves the number of top searches, as shown in the following figure.