Micro Focus QTP (UFT) Forums

Full Version: How to expand and collapse a tree structure in a web page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,
The application I am testing is having a tree element. Please refer to the screenshot for the screenshot.
Like this there are many places in the web page which has this.
I am trying to write a function which will expand/collapse this tree element.The function should be generic.ie,it should work in all the sub-portlets of the web portal.

Can anyone help me here.?
Hi,

You need a recurcive function which will perform the action until it reach the child tree item.

Let me know if you need any help on this.
Hi,

You need a recurcive function which will perform the action until it reach the child tree item.

Let me know if you need any help on this.
Hi supputuri,
It would be helpful if you can give me an example
Thanks
qtplearner
I need help to write a function which will click + or - as shown in the attached screenshot. Please help me in this.