wbfgrid not consistently recognized - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: wbfgrid not consistently recognized (/Thread-wbfgrid-not-consistently-recognized) |
wbfgrid not consistently recognized - vjjohnson04 - 11-28-2012 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 RE: wbfgrid not consistently recognized - harishshenoy - 11-28-2012 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 RE: wbfgrid not consistently recognized - vjjohnson04 - 11-28-2012 Thanks Harish got the solution. I had to replace the wbfgrid with webtable Thanks for replying |