This is a migrated thread and some comments may be shown as answers.

Tabstrip hyperlinks to have Id

3 Answers 58 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 02 Jul 2013, 01:00 PM
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

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 04 Jul 2013, 11:51 AM
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!
0
Manoj
Top achievements
Rank 1
answered on 04 Jul 2013, 12:18 PM
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
0
Alexander Valchev
Telerik team
answered on 05 Jul 2013, 08:10 AM
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!
Tags
TabStrip
Asked by
Manoj
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Manoj
Top achievements
Rank 1
Share this question
or