Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to count no of weblist on the page
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi ,

Just keep some syncronization points(wait,exist,waitproperty) after the given below statement (such as):

way1:

Code:
Browser("title:=Google").Page("title:=Google").link("innerhtml:=Preferences").Click
wait(3)
Dim AllChkBoxes
Set AllChkBoxes=Browser("title:=Preferences").Page("title:=Preferences").ChildObjects(obj_DescChk)
msgbox AllChkBoxes.count



way2:

Code:
Browser("title:=Google").Page("title:=Google").link("innerhtml:=Preferences").Click
if Browser("title:=Preferences").Page("title:=Preferences").exist then
   Dim AllChkBoxes
Set AllChkBoxes=Browser("title:=Preferences").Page("title:=Preferences").ChildObjects(obj_DescChk)
msgbox AllChkBoxes.count
End if

way3:

Code:
Browser("title:=Google").Page("title:=Google").link("innerhtml:=Preferences").Click
Browser("title:=Preferences").Page("title:=Preferences").waitProperty "Visible",True,"20000"
Dim AllChkBoxes
Set AllChkBoxes=Browser("title:=Preferences").Page("title:=Preferences").ChildObjects(obj_DescChk)
msgbox AllChkBoxes.count
Reply


Messages In This Thread
RE: how to count no of weblist on the page - by sreekanth chilam - 05-27-2009, 07:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Webtable objects recognise as weblist in UFT 12.5 Sharad Kumar 0 1,163 12-06-2018, 04:57 PM
Last Post: Sharad Kumar
  QTP identifying WebList as WebEdit and an Element passion77 3 8,431 01-27-2014, 10:21 PM
Last Post: supputuri
  How to populate data in weblist using excel vijifun 1 3,298 12-05-2013, 12:06 PM
Last Post: basanth27
Exclamation Identify the WebList Unleash Rajesh 3 6,816 01-03-2012, 06:41 PM
Last Post: sundari_msls
  GWT Weblist Not Getting Detected in QTP 10 aravind07 0 2,548 11-25-2011, 09:48 AM
Last Post: aravind07

Forum Jump:


Users browsing this thread: 3 Guest(s)