TestComplete ToolBarFunctions

Last Updated:

Actions for working with ToolBar objects.

Toolbars come in many different flavors. The toolbar support defined here is not going to work for all toolbars in all different environments. The tester will have to experiment using these commands against their specific toolbar.

[How To Read This Reference]
ClickButton
TC:NET
Deprecated For:ClickButtonText
ClickButtonIndex
TC:NET
Click on the icon at a certain position on the ToolBar object, it is 1-based.
ClickButtonText
TC:NET
Routine to Click on the specified Button.Key (Text) value.
ClickUnverifiedButtonText
TC:NET
Routine to Click on the specified Button.Key (Text) value.

TestComplete ToolBarFunctions::ClickButton (deprecated for: ClickButtonText)
TC:NET

Deprecated. Use ClickButtonText instead.

Deprecated. Use ClickButtonText instead.

Fields: [ ]=Optional with Default Value
  1. ButtonTextValue
    Case-sensitive text of the toolbar button to select.

    Case-sensitive text of the toolbar button to select.

  2. [ CaseInsensitive = ]
    "1", "CaseInsensitive", or "Case-Insensitive" to match button text in a case-insensitive manner.


Examples:
[How To Read This Reference]

TestComplete ToolBarFunctions::ClickButtonIndex
TC:NET

Click on the icon at a certain position on the ToolBar object, it is 1-based.

Click on the icon at a certain position on the ToolBar object, it is 1-based.

Fields: [ ]=Optional with Default Value
  1. Index
    Index described which icon to be clicked in the toolbar.

    Index described which icon to be clicked in the toolbar.
    RJ Note:
    1. If the index is bigger than the number of children of toolbar, the last icon will be clicked.
    2. The tool bar separator is not counted for indexing. If the toolbar contains "button1 | button2", button1 is at index 1, button2 is at index 2, the separator between these two buttons is not counted.


  2. [ Coordination = ]
    A position within the toolbar button, the mouse will be click there.
    RJ Note: This parameter is special for RJ implementation.


Examples:
[How To Read This Reference]

TestComplete ToolBarFunctions::ClickButtonText
TC:NET

Routine to Click on the specified Button.Key (Text) value.

Routine to Click on the specified Button.Key (Text) value. The user has an optional parameter to specify that the provided text is case-insensitive. The routine will also verify that the button is in the clicked or selected state upon completion.
Use ClickUnverifiedButtonText if this post-click verification should be skipped.


Fields: [ ]=Optional with Default Value
  1. ButtonTextValue
    Case-sensitive text of the toolbar button to select.

    Case-sensitive text of the toolbar button to select.
    RJ Note: This parameter may be a path like "a->b->c"


  2. [ CaseInsensitive = ]
    "1", "CaseInsensitive", or "Case-Insensitive" to match button text in a case-insensitive manner.


  3. [ Coordination = ]
    A position within the toolbar button, the mouse will be click there.
    RJ Note: This parameter is special for RJ implementation.


Examples:
[How To Read This Reference]

TestComplete ToolBarFunctions::ClickUnverifiedButtonText
TC:NET

Routine to Click on the specified Button.Key (Text) value.

Routine to Click on the specified Button.Key (Text) value. The user has an optional parameter to specify that the provided text is case-insensitive. However, not all Toolbars and Buttons will be able to support this case-insensitive capability.

Fields: [ ]=Optional with Default Value
  1. ButtonTextValue
    Case-sensitive text of the toolbar button to select.

    Case-sensitive text of the toolbar button to select.
    RJ Note: This parameter may be a path like "a->b->c"


  2. [ CaseInsensitive = ]
    "1", "CaseInsensitive", or "Case-Insensitive" to match button text in a case-insensitive manner.

    Not all toolbars and buttons will be able to support this case-insensitive option.

  3. [ Coordination = ]
    A position within the toolbar button, the mouse will be click there. RJ Note: This parameter is special for RJ implementation.


Examples:
[How To Read This Reference]