Click
Line 1: | Line 1: | ||
This command is part of the [[Browser Commands|Browser Command]]. This command simply clicks an element within the browser using the selectors (See [[The Selectors]] for more information). | This command is part of the [[Browser Commands|Browser Command]]. This command simply clicks an element within the browser using the selectors (See [[The Selectors]] for more information). | ||
+ | |||
+ | '''Element to Click:''' Refers to the element on the page that should be clicked. | ||
+ | |||
Revision as of 18:11, 23 April 2013
This command is part of the Browser Command. This command simply clicks an element within the browser using the selectors (See The Selectors for more information).
Element to Click: Refers to the element on the page that should be clicked.
Example
click(<innertext="Simple Form">, "Left Click", "No")
When the the script is run, the element with the innertext "Simple Form" will be clicked.
You can select what kind of click you would like sent to the element on the page.
To choose the item you want to click on the page by a different attribute, you would need the advanced element editor(symbolized by the cog). The advanced element editor will allow you to use regex and wildcards to further refine your selection. File:Elementeditor.png
To choose the item on the page with image recognition, simply click the camera icon and click and drag to select the item you want to click.
Once your script is run, the selected item will be clicked.
You can also decide if you want the item clicked by location.