11-28-2012, 01:58 PM
Hi all,
I'm trying to get the count from Wbfgrid. The code worked fine earlier but when I tried running the code again it did not recognize the object even though the Qtp object spy recognizes it.
I even tried to refresh the obeject using the "RefreshObject" method but it didnt work. Even creating a description of it doesnot help.
I'm trying to get the count from Wbfgrid. The code worked fine earlier but when I tried running the code again it did not recognize the object even though the Qtp object spy recognizes it.
I even tried to refresh the obeject using the "RefreshObject" method but it didnt work. Even creating a description of it doesnot help.
Code:
Set oDesc = Description.Create
oDesc("micClass").value = "WbfGrid"
oDesc("html id").value = "html id:=ClassStudentsCtl_StudentsGridCtl_ctl00"
set abc = Browser("micClass:=Browser").Page("micClass:=Page").ChildObjects(oDesc)
msgbox abc.count
If Browser("micClass:=Browser").Page("micClass:=Page").WbfGrid("html tag:=table","html id:=ClassStudentsCtl_StudentsGridCtl_ctl00").Exist Then
msgbox "Success"
else
msgbox "Object not identified"
End If