Tabstrip hyperlinks to have Id

4 posts, 0 answers
  1. Manoj
    Manoj avatar
    4 posts
    Member since:
    Apr 2013

    Posted 02 Jul 2013 Link to this post

    Hi,

    I understand that when we put tabstrip control on the page then it generates an unordered list with listitems in it which in turn have hyperlinks contained which act as links for switching the tabs.

    Now for our Automation requirements we need to have Ids on these inner contained hyperlinks ?

    Can you please let know that how it can be accomplished ?

    Thanks,
    M
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 04 Jul 2013 Link to this post

    Hi Manoj,

    Kendo TabStrip does not provide opportunity for setting the ID of inner anchor elements. I am not sure what exactly they are needed for, but you may select them via class "k-link" or find them in the select event of the widget:
    function onSelect(e) {
        $(e.item).find("a.k-link");
    }


    Regards,
    Alexander Valchev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Manoj
    Manoj avatar
    4 posts
    Member since:
    Apr 2013

    Posted 04 Jul 2013 Link to this post

    Hi Alexander,

    They've been requested by our automation test team as they need to write automation tests for the application and without the id's it can't be done.

    Is there any other way of doing this ?

    Thanks
    Manoj
  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 05 Jul 2013 Link to this post

    Hello Manoj,

    I am afraid that I cannot suggest a workaround for assigning IDs to the elements. You may try to use the innerText of the anchors combined with elements' places in the DOM to uniquely identify the elements - for example //li[3]/a[.='New York']

    As an alternative solution you may try out Test Studio which provides Kendo UI wrappers. For more information please check the following resources:

    Regards,
    Alexander Valchev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready