![]() |
Exist and ChildObjects - 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: Exist and ChildObjects (/Thread-Exist-and-ChildObjects) |
Exist and ChildObjects - SAKDOSS - 09-02-2009 Hello, I've got a problem when I try to use the "Exist" method on an object that I get thanks to ChildObjects. For example : Code: Set odesc = Description.Create I don't understand why the Exist method doesn't work. Question 1 : How can I use the Exist method in this case ? I tried to use "micClass" instead of "Class Name" but the JavaTables are not detected. Code: Set odesc = Description.Create Question 2 : Do you know why the "micClass" property doesn't match any of the 3 JavaTables in my window ? Thanks in advance ! RE: Exist and ChildObjects - sreekanth chilam - 09-03-2009 HI SAKDOSS, Please find the below example for an "WebTable" & its working fine for me. Example: Code: Set obj=Description.Create So explore from ur side for ur Java Appl & i hope you can solve it. RE: Exist and ChildObjects - SAKDOSS - 09-03-2009 Ok. I still don't understand why the micclass doesn't match any JavaTable but instead of "Exist(0)" I will use "GetROProperty("displayed")". Thank you for the example ! |