Forum Discussion
AlexeyK
Alumni
14 years agoPrasanna,
You need to find a property that returns the number of toolbar items and then you can use the property checkpoint to compare this number against a predefined value.
The property to be used depends on your toolbar control. As far as I remember, you are testing a WPF application. If it uses a standard WPF toolbar, you can use TestComplete's wButtonCount property, or the toolbar's native Items.Count property. If you use another toolbar, please see the documentation on your toolbar control or ask your developers.