Contributions
Re: Unable to find DotNetBar control
Please find a sample application in attachment. Here is the script I tried to find the button and it didn't work for me: Dim PropArray, ValuesArray Dim RibbonBar Set RibbonBar= Sys.Process("SampleDNB").WinFormsObject("Form1").WinFormsObject("MainRibbon").WinFormsObject("OrganizationRibbonPanel").WinFormsObject("OrganizationCreateBar") Dim Button PropArray = Array("Text") ValuesArray = Array("Test1") Set Button=RibbonBar.Find(PropArray,ValuesArray,1) Log.Message Button.Exists1.6KViews0likes0CommentsUnable to find DotNetBar control
We areusing DotNetbar controls from here: http://www.devcomponents.com/dotnetbar/download.aspx Our application is using ribbon controls from the package. The ribbon controls have the next hieararchy -RibbonControl --RibbonPanel --RibbonBar --ItemContainer --Buttons and other simple controls My problem is that TestComplete doesn't see ItemContainer control and anything below it. The buttons on it are not searchable by Find\FindChildren methods. Controls.Count property of RibbonBar always returns 0. Is there a workaround to this issue?19KViews0likes6Comments