Contributions
Re: Using TestComplete script to access ToolBar in Orders Sample
Figured it Out. #@FirstScript def FirstTestScript(): p = Sys.Process("Orders") w1 = p.WinFormsObject("MainForm") toolbar = w1.WinFormsObject("ToolBar") toolbar.ClickItem(1) Sys.Process("Orders").Window("#32770", "Open", 1).OpenFile("MyTable.tbl") #End of FirstScript12 months agoPlace TestComplete QuestionsTestComplete Questions219Views0likes0CommentsUsing TestComplete script to access ToolBar in Orders Sample
I am new to TestComplete so I am learning using the "Orders" code example. I am trying to access the file open in the toolbar from the Orders example. Using these python commands, I think that I can get to the toolbar: p = Sys.Process("Orders") w1 = p.WinFormsObject("MainForm") toolBar = w1.WinFormsObject("ToolBar") I am trying to figure out how to get access to the buttons now, I think the command : toolBar.Buttons[1] gets me to the file open button, but I am at a lost at what to do next. Thank you for any ideas.288Views0likes2Comments