Micro Focus QTP (UFT) Forums
WORKING WITH TREE OBJECTS - 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: WORKING WITH TREE OBJECTS (/Thread-WORKING-WITH-TREE-OBJECTS)



WORKING WITH TREE OBJECTS - venkatasuresh06 - 09-25-2011

hi,
I am trying to get sublinks of "My Transactions" in IRCTC.
Step 1: Login with valid username and password to IRCTC site.
Step 2: Expand My transactions under plan my travel.
Step 3: Get the child links for this tree.

Can any one help me in this?


RE: WORKING WITH TREE OBJECTS - guin.anirban - 09-27-2011

If "My Transactions" and "User Profile" are same object type then you click on "My Transactions" and store the link values until it reaches to "User Profile".
Need to use ChildObject and 'For' loop.
Use certain criteria to get values in between as well as exiting from the For loop.


RE: WORKING WITH TREE OBJECTS - venkatasuresh06 - 10-18-2011

Thanks for your reply.

The problem is Services and My Transactions in IRCTC are treated as webelements. and links under these tree menus are not coming under these webelements. parent of links is displayed as FROM table. mean there is only one table for left pane and all are children of one table. in that case if i want to find which link is displayed under which tree, how can i do it

For ex: under My Transactions if i expand this i could able to see booked e-ticket, cancel e-ticket, booked ticket status etc....

for all these links My transactions is not the parent. In the same way i have to find links under services also