Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wbfgrid not consistently recognized
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
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.


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
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

Do not use the property name in the value field while defining the object.which u used in the
---> oDesc("html id").value = "html id:=ClassStudentsCtl_StudentsGridCtl_ctl00"
replace the above with the below:

---> oDesc("html id").value = "ClassStudentsCtl_StudentsGridCtl_ctl00"


U have used a extra 'html id:=' while defining.

Thanks,
Harish Shenoy
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Thanks Harish got the solution.
I had to replace the wbfgrid with webtable Smile

Thanks for replying
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT unable to identify Java app objects consistently lester 1 2,040 07-12-2018, 08:28 PM
Last Post: Ankur
  Telnet command not recognized Sanjana1987 1 2,061 09-20-2017, 03:16 PM
Last Post: Ankur
  Webtable Checkpoint to get cell data from dynamic WbfGrid Neetha 1 3,480 08-20-2015, 11:43 PM
Last Post: ADITI1992
  Objects are being recognized as "Windows for Menu item list (Browser-firefox, UFT 12) akhandesh 0 2,535 05-27-2015, 06:29 PM
Last Post: akhandesh
Smile Importing Excel sheet - Reference Values are not recognized michiusa69 3 7,885 01-23-2015, 02:36 AM
Last Post: lkng2001

Forum Jump:


Users browsing this thread: 1 Guest(s)