Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Count gives wrong result
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi I am trying to count total no of weblist from the web page.
I have written following script.
But it gives result as 0.However there are 2 weblist present on the page.
Why it showing result as 0 ?

Code:
SystemUtil.Run"IEXPLORE.exe","http://www.google.com"
Set Butobj = Description.Create()'Forweblist
Butobj("micclass").value = "weblist"'For weblist
Butobj("html tag").value="select"'For weblist
Browser("name:=google").page("title:=google").link("innerhtml:=preferences").click
set collection=browser("name:=preferences").page("title:=preferences").childobjects(Butobj)
msgbox collection.count

Can anybody point the mistake ?
Reply


Messages In This Thread
Count gives wrong result - by sudhirzpatil - 05-27-2009, 06:14 PM
RE: Count gives wrong result - by Tarik Sheth - 05-28-2009, 02:27 PM
RE: Count gives wrong result - by sudhirzpatil - 05-28-2009, 03:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Childobject return wrong checkbox count.. VpnQTP 1 2,560 04-09-2015, 09:07 PM
Last Post: babu123
  wrong code execution pkdhake 4 3,469 07-27-2013, 12:19 PM
Last Post: sreekanth chilam
  Wrong count for UsedRange rows and columns in datatable. qtpexpert 2 6,137 06-20-2012, 04:35 PM
Last Post: qtpexpert
  QTP gives wrong value through GetRoProperty rahul3tech 2 3,854 02-03-2012, 10:14 PM
Last Post: rajpes
  How to retrieve test result summary from a test result window using dp? jyotikrushna 3 5,086 09-30-2011, 09:24 AM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)