Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
CodedUI Failed To Find Button in Ribbon
posted

Hello,

We have a WPF PRISM-based application and used ExtensionSite mechanism, as explained here to add buttons in XamRibbon. The buttons and tabs are added in XamRibbon by each plug-in itself when dynamically loaded. The XamRibbon is exposed as UIExtensionSite as explained in the article. All ribbon controls are accessible while recording the CodedUI test. Once recording is complete, the buttons and Ribbon groups can't be accessible, even in UIMap but XamRibbon and Tabs do. The recorded CodedUI project is attached herewith.

Although, we have created a sample application without using PRISM and other stuff, things work perfectly. On the side note, we tried to change the MaxLevelsForItemContainer value to 10 in CodedUI.config file but no success.

Can you please help us in this regard?

Best,

Allana

CodedUITestProject.zip
Parents
No Data
Reply
  • 34690
    Offline posted

    Hello Allana,

    Thank you for your post!

    Personally, I am not very familiar with the ExtensionSite mechanisms in PRISM. Would it be possible for you to send me the project you are using, or a small isolated one that demonstrates what you are doing in your project? The .zip file you have attached contains the UI Tests, but for me to test this properly, I may need to know exactly how you are using the XamRibbon with this ExtensionSite mechanism.

    Sincerely,
    Andrew
    Developer Support Engineer I
    Infragistics Inc.
    www.infragistics.com/support

Children