TestComplete 15 ToolBar.ClickItem cannot click split button ?
I thought I posted this question earlier but I do not see it in the recent questions list ... so try posting again. Sorry if duplicate.
I am new here and also new in TestComplete coding, all developers who did the coding before left the company. I am trying to pickup from what they did. I recently migrated our project from TestComplete12 to TestComplete15, and now trying to run the testcases. Of course there are a lot of problems. The first one I am trying to solve is the ToolBar.ClickItem
So the section of the code is :
Aliases.MA.MainWindow.Activate
Set ToolBar = Aliases.MA.MainWindow2.zMAMainWindow_Toolbars_Dock_Area_Top
ClickMAToolbarItem = True
select Case(ucase(sItem))
Case "GO EN ROUTE"
ToolBar.ClickItem("[4]|Operations|En Route|Go En Route")
The "Go En Route" button will show if clicking the down arrow on the right side of the "En Route" button
During the run, it cannot click the Go En Route button.
And earlier in the test, it was able to click the "Host Responses" button from this code
Case "HOSTMESSAGES"
Toolbar.ClickItem("[4]|Views|Host Responses")
Hope some of you Gurus can give me some ideas.
Thanks.
The other approach is to create a new project, and use the record and playback function, to record your actions, in script. So that you can see how TestComplete has identified your UI and the method used to interact with the control. You can apply the script code to your existing project.