DockTabStrip support in codeUI testing Tool

7 posts, 1 answers
  1. Megamind
    Megamind avatar
    11 posts
    Member since:
    Jan 2018

    Posted 01 Mar 2018 Link to this post

    Hi, I've been trying to record action of ToolWindow and Document Window in codeUI testing tool, and I am not able to get Id or Name for DockTabStrip and my tests are being failed. Also not able to select Close and AutoHide buttons on DockTabStrip  when I apply cross hair on them. Is there any way I can access these when windows are Docked in?
  2. Megamind
    Megamind avatar
    11 posts
    Member since:
    Jan 2018

    Posted 05 Mar 2018 in reply to Megamind Link to this post

    Help ??
  3. Hristo
    Admin
    Hristo avatar
    1520 posts

    Posted 06 Mar 2018 Link to this post

    Hello,

    Please make sure that you set the RadDock.EnableCodedUITests property to true. In case you are using Visual Studio 2015 please check if it has Update 1 installed. I am also attaching my test project performing a recording of closing and auto-hiding windows in the dock control.

    In case your issue persists, please let me know with details about the test you are trying to record. Screenshots showing the error on your end would also help.

    I hope this helps. Let me know if you have questions.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  4. Megamind
    Megamind avatar
    11 posts
    Member since:
    Jan 2018

    Posted 06 Mar 2018 in reply to Hristo Link to this post

    First of all Thankyou Hristo for your reply.

    My problem is only when window is in Docked In state , in floating state,I'm able to access window's close button or autohide buttons. So when window is docked in state can I get close and autohide buttons?

  5. Megamind
    Megamind avatar
    11 posts
    Member since:
    Jan 2018

    Posted 06 Mar 2018 in reply to Hristo Link to this post

    In docked state we can't perform CodeUI cross-hair on close or autohide buttons.
  6. Answer
    Hristo
    Admin
    Hristo avatar
    1520 posts

    Posted 08 Mar 2018 Link to this post

    Hi,

    When the window is floating you can use the spy tool and detect the buttons in the title bar of the window. In Docked state, however, the window does not have a title bar and these buttons are not accessible. If you make a recording, you will still be able to detect click and the returned element is the document tab strip. In this setup, the close and auto-hide buttons are not supported because they are not exposed as MSAA children.

    I hope this information was useful. Let me know if you have other questions.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  7. Megamind
    Megamind avatar
    11 posts
    Member since:
    Jan 2018

    Posted 08 Mar 2018 in reply to Hristo Link to this post

    I had this kind of idea but was not sure and its clear to me now. Thanks!

Back to Top