TC cannot replay click on XtraBars ribbon button
Hi,
I'm trying to play a keyword script including a click on a ribbon button. While this worked fine for the buttons included in the tests so far, now I suddently came to a problem. When TC tries to click the Bold button on a ribbon tab, the following error is caused:
Possible reasons:
1. The application stopped responding.
2. The application was compiled incorrectly (see the Open Applications topic in the help system).
3. An error occurred in TestComplete.
Technical information:
258 0x80004005 (Unspecified error) XtraBars support: Unable to retrieve the bounds of the item.
Current item information:
Path: Quick Access|Format|[0]|Bold.
Internal Types: RibbonPage|RibbonPageGroup|BarButtonGroupLink|BarBaseButtonItemLink.
CLR Types: DevExpress.XtraBars.Ribbon.RibbonPage|DevExpress.XtraBars.Ribbon.RibbonPageGroup|DevExpress.XtraBars.BarButtonGroupLink|DevExpress.XtraBars.BarCheckItemLink.
Tested object:
Aliases.MemoQ.Ribbon
(Sys.Process("Foo").WinFormsObject("MainWindow").WinFormsObject("ribbonControl1"))
For me it is somewhat strange that TC inserted [0] into the path of Quick Access|Format|[0]|Bold, since I would expect the path to be Quick Access|Format|Bold. Using this latter path, however, TC does not even find the button. I guess the button is, for some reason, the combination of a link identified by index 0 and a label (it's of the type BarCheckItemLink), but this does not help me to resolve the problem of replaying the click action.
I'm using a debug build of the tested application, which is a .NET app and is open to TC. Again, clicking buttons on other ribbons tab worked fine.
Any help welcome.
Gus