01-12-2010, 10:51 AM
Hi All,
This is the issue I am facing with asp ajax tabs located in a page.
Please have a look at the attached images:
tabs-guest.jpg : I am supposed to get the count of the tabs in this page and click them one after the other.
Here is the code I have used:
'but even this dint work.
Please have a look at tabs-spy.jpg also to get an idea of the object properties.
Can anybody help me on this please ??
Thanks
Swetha
This is the issue I am facing with asp ajax tabs located in a page.
Please have a look at the attached images:
tabs-guest.jpg : I am supposed to get the count of the tabs in this page and click them one after the other.
Here is the code I have used:
Code:
Set obtab = description.Create
obtab("class").value = "ajax__tab_tab" ('Each tab class)
'used the above line to get the childobjects count
set tbclick = browser("TalonPro Solutions").Page("TalonPro Solutions").ASPAjaxTabs("id:=ctl00_ContentPlaceHolder1_ajxtabconGuestDetails").ChildObjects(obtab)
a = tbclick.count()
msgbox a
'msgbox reads '0' as the count.
Nother method used :
'used the for loop to to check atleast QTP able to click on the specified tab.
Set objtabs = description.Create()
objtabs("Class Name").value = "ASPAjaxTabs"
objtabs("selected index").value = i
For i = 1 to 5
Set tabscount = browser("name:=TalonPro Solutions").page("title:=TalonPro Solutions").webelement(objtabs)
tabscount.click
next
'but even this dint work.
Please have a look at tabs-spy.jpg also to get an idea of the object properties.
Can anybody help me on this please ??
Thanks
Swetha