Click web element
Description
Click on the targeted web element.
Input Ports
Name | dataType | sourceType | required | description |
---|---|---|---|---|
Element selector | text | link-manual | true | The selector that should be focused and clicked on. |
iFrame selector | text | link-manual | false | If the element is inside of an Iframe, it is mandatory to specify the iframe selector, otherwise the element won’t be found. |
iFrame type | text | manual-only | false | Option to add more iframes if the targeted element exists in a nested iframe |
Mouse button | text | link-manual | true | Click left or right on the focused element. |
Number of clicks | number | link-manual | true | The amount of times that should be clicked on the focused web element. |
Scenarios
- The user wants to click a web element 1 time with the left mouse button.
- The user wants to click a web element 1 time with the left mouse button inside of an iframe.
- The user wants to click a web element 1 time with the right mouse button.
- The user wants to click a web element 1 time with the right mouse button inside of an iframe.
Use case
It is required to make use of the Launch web browser command.
Inputs
- Element selector:
body > h1
- iFrame selector:
#iframeResult
- iFrame type:
single
- Mouse Button:
left
- Number of clicks:
1
Experienced tips
- When no
Element selector
are specified, you will get the following errorpage.click: selector: expected string, got object
- When the
Element selector
does not exist, the command will timeout - When the
iFrame selector
does not exist, the command will timeout - When no
Element selector
is provided, it will stop the process and throw the following error.Click element requires a element selector
Search Tags
Click web element