I have a web page which has a tree like structure, and I have to go down recursively till I get a link.
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).
Someone please help me get a solution