lbyrne
10 years agoContributor
button bars
The following code was recorded using Test Complete. Set toolkitButtonBar = splitContainer.WinFormsObject("SplitterPanel", "", 1).bbarBroker Call toolkitButtonBar.Click(36, 50) A button call...
I see the property Index is available for the toolkitButtonBar but I dont know how to use it
Set toolkitButtonBar = splitContainer.WinFormsObject("SplitterPanel", "", 1).bbarBroker
When I tried the following codeit returns the label on the button -- Properties
Set text = toolkitButtonBar.Items.Item_2(0).get_Text
When the following code executes it returns the label on the second button -- Financials
Set text = toolkitButtonBar.Items.Item_2(1).get_Text
But I cannot seem to find the Click method.
What happens if you try
Call toolkitButtonBar.Items.Item_2(0).Click
<script>// function writeContent(){ document.getElementById("container").innerText = document.getElementById("dataIsland").innerHTML; }window.onload = writeContent; // </script>
I get the following error
Object doesn't support this property or method: 'toolkitButtonBar.Items.Item_2(...).Click' Error location: Unit: "HSPAdminTK\Codes Management\Script\Tasks" Line: 202 Column: 1.
Could we see a screenshot of your code?