child object method?? - 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: child object method?? (/Thread-child-object-method) |
child object method?? - wheelercha - 03-05-2010 I have a web table where all of the objects are named the same. There are 6 col's. Date, invoice Number, Amount, Date Paid, Edit or View and Delete. There could be many rows. I want to collect the data from the rows. Then I want to Delete a record or edit a record. So in my case GetCellData is only working for the 1st row not any of the others. I get an error The specified cell does not exist. That said, what do I use to collect the data? ChildObject Method? Can you give me an example? Thanks RE: child object method?? - sreekanth chilam - 03-05-2010 Hi , Could you paste the code what ever you have tried? RE: child object method?? - wheelercha - 03-05-2010 So this only returns 1 row - A Code: 'A = Browser("Suppliers and Invoices").Page("Suppliers and Invoices").WebTable("Invoices").GetCellData(1,1) 'msgbox A 'msgbox B 'msgbox C So needless to say - when I use child object method - it only finds the first row as well Code: Call ChildObjects_Example() How can I traverse threw each row to get each one? |