![]() |
problems with 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: problems with ChildObjects (/Thread-problems-with-ChildObjects) |
problems with ChildObjects - stevol - 07-10-2008 Hi, i don't understand this behavior: i have a page with many links and I use ChildObjects with this description: Code: Dim descrLink, objLink, NoOfLink [pag is a Page Object]. If I run many times this code, NoOfLink is not always the same number... 1. Why? 2. Which is the difference between "Class Name" and "micclass"? 3. In my page I have more links than NoOfLink... RE: problems with ChildObjects - stevol - 07-10-2008 ok, problems of page loading... I supposed that "pag.Sync" was sufficient... now I have added a "wait(20)" and I obtain always the same number of links :-) RE: problems with ChildObjects - prince3105 - 07-16-2008 Sync function doesn't work in DP so instead of Sync use Wait(). Or use below code Code: Set IE = CreateObject("InternetExplorer.Application") |