Click

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
Line 44: Line 44:
 
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).
 
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.
 
The advanced element editor will allow you to use regex and wildcards to further refine your selection.
 +
 +
 
[[File:elementeditor.png]]
 
[[File:elementeditor.png]]
  
Line 50: Line 52:
  
 
[[File:image.png]]
 
[[File:image.png]]
 
  
  
Line 56: Line 57:
  
 
You can also decide if you want the item clicked by location.
 
You can also decide if you want the item clicked by location.
 
  
  
 
[[File:click0.png]]
 
[[File:click0.png]]

Revision as of 20:01, 20 May 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.

Clicking the Advanced option on the command expands and reveals more options.

Mouse Event: Determines the behavior of a mouse click. The different behaviors are listed below:

  • Left Click: A left click is sent to the selected item.
  • Right Click: A right click is sent to the selected item
  • Double Click: A double click is sent to the selected item.
  • Left Mouse Down: Left clicks and holds the selected item.
  • Left Mouse Up: Releases a left click on the selected item.
  • Right Mouse Down: Right clicks and holds the selected item.
  • Right Mouse Up: Releases a right click on the selected item.


Click Using Location: This option allows you to click and item based on the item's location. Select "Yes" to use the feature.


Example

click(<innertext="Simple Form">, "Left Click", "No")


File:Click.png


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.


File:Click2.png


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.


File:Image.png


Once your script is run, the selected item will be clicked.

You can also decide if you want the item clicked by location.


File:Click0.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox