ClickElement

Top  Previous  Next

×V5.3Ø

S

A

W

WS

M

 

 

ü

Syntax -

ClickElement <App Name> <Element Identifier>

       Where:

               <App Name> The name that represents an opened application.

               <Element Identifier> is a valid element identifier as described in Element Strings and References.

                               

Description:

This command simulates a mouse click on an element in a windows application.  This command is used to click buttons, links, and other elements.

 

Note:

An offset can be used in the element string.The offsets work by using the X/Y values provided in the string and counting to the right and down from the top right corner of the identified element. This is only supported for ListItem, Text or Pane.

 

Sample 1:

       The following statement clicks on an Ok button element.

ClickElement RevCycle "Element[Name=Ok|Type=Button]"

 

Sample 2:

       The following statement anchors on list and then clicks a list item within the anchored list.

ClickElement RevCycle "Reference[Parent|Type=List|INDEX=1] Element[Type=ListItem|Index=3]"

 

Sample 3:

       The following statement clicks on a menu item labeled, "Credit."

ClickElement RevCycle "Element[Name=Credit|Type=MenuItem]"

 

Sample 4:

       The following statement clicks on a checkbox inside of a list item using an X/Y offset.

ClickElement RevCycle "Element[Name=Nurse East (C)|Type=ListItem|OffsetX=5|OffsetY=10]"

 

Control Usage:

Button - Mouse Click

SplitButton - Invoke

MenuItem - Mouse Click

TabItem - Mouse Click

ListItem - Mouse Click

Text - Mouse Click

Edit - Mouse Click

TreeItem - Mouse Click

Image - Invoke

CheckBox - Invoke

Hyperlink - Mouse Click

RadioButton - Invoke

sftTree - Mouse Click

Spreadsheet - Mouse Click

Pane - Mouse Click

 

See Also:

RightClickElement

OpenApp