Forum Discussion
It will also help to know what kind of control it is that you are trying to capture. For example, if the parent control is a grid, what kind of grid is it? AS sanjay0288, it would help us help you if we know a bit more about the control you are working with and whether or not it is in the list of supported controls.
- swapna-erram8 years agoOccasional ContributorHi, Please let me know if any other information is required
- HKosova8 years agoSmartBear Alumni (Retired)
Hi Swapna,
Infragistics does not make VCL controls; the controls in your example are DevExpress-based. This particular control (TcxRibbonBackstageViewGalleryControl) is not specifically supported by TestComplete, but you can use its native properties and methods to access the data and automate the actions. Your tested application needs to be compiled with debug information.
Some useful properties and methods (they work in vanilla TcxRibbonBackstageViewGalleryControl):
obj.Gallery.Groups.Count - get group count
obj.Gallery.Groups.Groups(index) - get a group by index
obj.Gallery.Groups.Groups(index).ItemCount - get item count for a group
obj.Gallery.Groups.Groups(index).Items.Items(index) - get an item by index within a group
obj.Gallery.GetFirstItem() / .GetVisibleItem() - get the first item or the first visible item
obj.Gallery.ClickItem( itemObj ) - click the specified item
obj.Gallery.Groups.Groups(index).Items.Items(index).ViewInfo.Bounds.Top / .Left / .Right / .Bottom - item coordinates within the control, in case you want to click them using obj.Click(itemX, itemY).Hope this helps!
- tristaanogre8 years agoEsteemed Contributor
swapna-erram wrote:
Hi, Thanks for the quick response. The control we are interacting is 'Tree Ribbon Backstage View gallery Control" Attached the snapshotsThat sounds like it is a custom control based upon something else, possibly one of the other ribbon controls available.
What you will need to do is follow what sanjay0288 said an map your control to one of the supported Infragistics or DevExpress ribbon controls.
Related Content
- 10 years ago
Recent Discussions
- 14 hours ago
- 7 days ago
- 10 days ago