Test Microsoft Ribbon

7 posts, 0 answers
  1. Andreas
    Andreas avatar
    5 posts
    Member since:
    Feb 2008

    Posted 03 Jul 2015 Link to this post

    Hello everybody,

     

    has anyone managed to find Ribbon elements using wpfApp.MainWindow.Find.ByName(....)?

    I can find the ribbon element itself, bit sub elements like "RibbonApplicationMenuItem" or "RibbonButton" cannot be found by neither name nor type.

     

    Any suggestion is welcome!

     

    Greets

    Andreas

  2. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 08 Jul 2015 Link to this post

    Hello,

    When you find the ribbon you should be able to find the ribbon elements within it. This should be straight forward. In order to assist further we will need a sample application and the test you are using in order to take a look and investigate further.

    Regards,
    Ivaylo
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  3. Andreas
    Andreas avatar
    5 posts
    Member since:
    Feb 2008

    Posted 09 Jul 2015 in reply to Ivaylo Link to this post

    Hello,

     I attached a demo project where my problems can be seen (hopefully :-))

     

    Thanks in advance

  4. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 13 Jul 2015 Link to this post

    Hеllo,

    Thank you for providing the project. Will take a look and investigate further.

    Will update this ticket accordingly.

    Regards,
    Ivaylo
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  5. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 28 Jul 2015 Link to this post

    Hello Andreas,

    Please excuse me for the delayed reply.

    I have used the test you have provided and I have faced the error experienced, however this looks like an expected behavior, since when I run this in recording mode, there is no element with the name Button21 as you can see from the screenshot attached.

    Regards,
    Ivaylo
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  6. Andreas
    Andreas avatar
    5 posts
    Member since:
    Feb 2008

    Posted 29 Jul 2015 in reply to Ivaylo Link to this post

    Hi Ivaylo,

    I see, only currently visible elements can be found, so I have to change the current Tab!
    Thank you. Is this WPF GUI inspector available for Visual Studio 2013? That would be a great improvement for me!

    Greets
    Andreas

  7. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 03 Aug 2015 Link to this post

    Hi Andreas,

    This the Test Studio recorder which has a DOM explorer for WPF.

    Here is a Google search for available WPF inspectors.

    Hope that helps.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top