Description object does not work, anybody know why? - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Description object does not work, anybody know why? (/Thread-Description-object-does-not-work-anybody-know-why) |
Description object does not work, anybody know why? - ConstantChange - 01-21-2008 Hi! I once wrote a little tool function, which collects all error messages (all objects having the class *error*) on a page/table. Basically it works fine, but it seems not on all pages. There is a certain one, where it just won't pick up the <p> tags. To be more exact, if I use ChildObjects() without a decription object it will pick up 14 items, but in all of them the "class" is empty (when debugging or outputting it in qtp), even though in the html source cleary shows that those html items do have a class set. Also I tried using the whole page as parent, or the WebTable those messages are in, but it does not make a difference. In the following is the code of that function, and further down the html (-snipplet, only the one table with the messages) where it should actually work on, but it does not. Thanks for reading and potentially helping! CC Code: Function getAllErrorMessagesOnPage(parentObject) html code (not that the classes are set) Code: <table class="blueTop"width="100%"> |