I have a web page which has a tree like structure, and I have to go down recursively till I get a link.
For instance:
i) Click on India, there is no link
ii) So, next click on City, there is no link
iii)So, next click on Mumbai, there is a link. This will lead to a new page. So fetch the data from that page. After fetching I should go back one step and again click on next cityname(here it is bangalore).
expanding all children with the help of the right key ( a lot of Ui Elements allows us to start on top and when sending right, right… it will expand or jump to next when it is already expanded)
collect all links with find children
But also have a look if the links are already present but not displayed. Then we can omit the expansion and use find children directly for retrieving the links