Mapping a UI element which is persistent on the web app pages

2 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    2 posts
    Member since:
    Apr 2016

    Posted 05 May 2016 Link to this post


    TS Element Explorer is a useful feature to follow the page object pattern, however, it seems to be be oriented towards web pages in the web app. What if I have to write tests for a web app which has, e.g., navigation menu which is constant through the app pages?

    Taken that I have the main page, the about page, the contacts page, etc. and on each of them a nav bar with items: MainPageLink, AboutPageLink, ContactsPageLink, etc. I can't see how to avoid mapping all the link for each page, instead once specifying an object for that menu with its links, and calling its instance on each of the pages under testing

  2. Elena
    Elena avatar
    1126 posts

    Posted 10 May 2016 Link to this post

    Hello Dmitry,

    Thank you for your interest in Test Studio. 

    Test Studio uses an intelligent element identification scheme to auto-generate find expressions and they are divided into pages in the element explorer as you have already noticed. Even if elements might use the same find expression but still belong to different pages they will be recognized as different elements. 

    Please let me know if there is anything else I could be helpful with. 

    Elena Tsvetkova
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top