Click Web Element
Command description
Click a specified web element. The command activates the element's webpage and scrolls the element into view if necessary. Capture the element first, then choose the click mechanism, mouse button, and single- or double-click behavior.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Webpage Object | WebPage | Click an element on this page |
| Web Element | WebElement or str (captured element UID, not element name, not ms-rpa-id) | Select a captured element or one returned by Get Web Element, Get Similar Web Elements, or Get Related Web Elements |
| Click Type | enum | Mouse Click, Silent Click, CDP Silent Click |
| Click Method | enum | Single Click, Double Click |
| Mouse Button | enum | Left Button, Right Button |
| Click Position | enum | Random, Center |
| Modifier Key | enum | None, Alt, Ctrl, Shift |
| Post-Click Delay | number | Time to wait after clicking, in seconds |
| Element Wait Duration | number | Maximum time to wait for the element to appear, in seconds |
Command Output Parameters
None
Type definition reference
Click method comparison
| Click method | How it works | Uses the mouse | Similarity to human input | Click speed | Click accuracy | Advantages | Disadvantages |
|---|---|---|---|---|---|---|---|
| Mouse Click | Brings the browser forward, locates the element on screen, moves the pointer, and clicks | Yes | Closest to a physical mouse click and broadly compatible | Takes control of the mouse and foreground window. The browser must be visible and the element unobstructed | |||
| Silent Click | Dispatches the click through webpage JavaScript | No | Fast, accurate, and fully background-capable, including when the browser is off-screen or covered by another window | Some webpage elements do not respond because it differs from a physical click | |||
| CDP Silent Click | Locates the element in the webpage, then clicks through Chrome CDP | No | Fast, close to a physical click, and background-capable even when the window is off-screen or covered by another window | The target element cannot be covered by another webpage element |
tip
- Install the Runavelo browser extension before using this command.
- CDP Silent Click requires Runavelo 7.7.0 or later and browser extension 2.4.0 or later.
- See Capture Web Elements .