|
Input - Click mouse |
Declaration
<AMINPUT ACTIVITY="click_mouse" BUTTON="text (options)" CLICK="text (options)" />
Description
Clicks the mouse according to the parameters specified.
Practical Usage
Mostly used after a Input - Move mouse or Interactivity - Move mouse to object step to click the specified button after the mouse has been moved to the desired area or object.
Parameters
General
Property | Type | Required | Default | Markup | Description |
---|---|---|---|---|---|
Button to click | Text (options) | Yes | Left button |
|
The
button that should be clicked on the mouse. The available options
are:
|
Click action | Text (options) | Yes | Single click |
|
The
type of click that should take place on the mouse. The available
options are:
NOTE: The Hold down option will
hold down the mouse button for the duration of the task. If you
want the mouse button released during execution, make sure to
add a step that releases the mouse button. |
Example
- The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
- Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.
Description
This sample task runs the following steps:
-
An Open Web Page action opens the web page "www.google.com".
-
A Set Text action sets the text "Business Process Automation Software" in the search box.
-
A Move Mouse to Object action moves the mouse cursor to the "Google Search" button.
-
A Click Mouse action clicks the "Google Search" button.
<AMBROWSER URL="www.google.com" SESSION="BrowserLegacySession1" />
<AMBROWSER ACTIVITY="setvalue" HTMLNAME="q" SESSION="BrowserLegacySession1" VALUE="Business Process Automation Software" ATTRIBUTE=":text" />
<AMINTERACT ACTIVITY="mouse_to_object" WINDOWTITLE="Google - Internet Explorer" OBJECTPROPERTIES="Toolkit=UIAutomation,Type=50000,Class=,FrameworkId=,Name=Google Search,AutomationId=,Value=,ParentPath=50032|50033|50033|50033|50033|50025|50000,Occurrence=,X=,Y=" />
<AMINPUT ACTIVITY="click_mouse" />