Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ASP AJAX tabs count and click ???
#1
Solved: 10 Years, 9 Months ago
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:
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


Attached Files Image(s)
       
Reply
#2
Solved: 10 Years, 9 Months ago
As per my understanding What ever properties r given in DP ,that r not sufficicent to identify the required tab.
Use micclass etc.
class name always conflict to diff object class.

Use the properties which give correct def.of obj.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP does not record anything on a page developed using AJAX shayk1985 2 2,177 05-21-2014, 04:56 AM
Last Post: shayk1985
  Import and read multiple tabs on a datasheet trance07 1 3,084 10-09-2013, 07:29 PM
Last Post: Parke
  I want to count total no of links in a page and click one by one excellentpawan 9 6,739 07-23-2013, 11:51 AM
Last Post: Ankur
  Right Click On a Image and Click on a Link in WebElement RameshKrishnan 4 5,140 07-10-2013, 04:13 PM
Last Post: RameshKrishnan
  How do I left click on the right click menu in WinTreeView? RandomGrin 0 3,658 12-22-2012, 04:22 AM
Last Post: RandomGrin

Forum Jump:


Users browsing this thread: 1 Guest(s)