Using Set in Descriptive Programming - 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: Using Set in Descriptive Programming (/Thread-Using-Set-in-Descriptive-Programming) |
Using Set in Descriptive Programming - srinivasadityab - 11-16-2008 Hi 1)I would like to know what contains in the Obj when I issue the following Statements in QTP. Code: Set Obj=Description.create() I issue this statements first to count the no.of objects in a window. How will be the structue of Obj in memory. What it is going to have exactly. 2) I sent this "Obj" into childobjects method like this. Code: Set Objcoll=window("Flight Reservation").childobjects(obj) So what will "Objcoll" have now. what information about the childobjects are captured in Objcoll above. regards Srinivas Aditya RE: Using Set in Descriptive Programming - ramesh16j - 11-16-2008 Code: Set Obj=Description.create() RE: Using Set in Descriptive Programming - stevol - 11-17-2008 Objcoll will be a collection of all "WinButton" objects present in window "Flight Reservation". If you want only a part of these WinButtons, you must describe Obj setting more features RE: Using Set in Descriptive Programming - yaron.assa - 11-24-2008 As stevol said, these objcoll is a collection of WinButton objects. Here're some of the things you can do with it: Ask how many are these: objcoll.count Access a the first of these objects: objcoll.Item(0) Run through all of them, and highlight them one at a time (of course you can also input them, click them, or anything else): Code: For i = 0 to objcoll.count -1 |