Hi. abhibus.com is a website to book bus tickets in India. I’m practicing data extraction from this website. In this website, I need to type source location, destination location, date of journey and I need to click on search button to see available bus results. These results will be in a structured data format which we can scrape using table extraction wizard from UiPath studio.
These are the possible outcomes:
- Only private travels data is available in the results. It means that only 1 data table needs to be extracted
- Private travels as well as one RTC travels data is available. It means that we need to extract 2 data tables, one for private travels and another for RTC
- Private travels and more than one RTC travels data is available. Private travels details belong to one data table and each RTC travels data belongs to another data table.
I’m able to extract data for 1st and 2nd possibility. In every case, if there’s any RTC travels, we need to expand that data table by clicking on dropdown button for that RTC data table. But when it comes to third possibility I’m not able to find a unique selector to expand every RTC buses list. If I try to put * in selector, it identifies top RTC, but there’s a possibility that robot can detect all other RTC dropdowns as duplicates during runtime.
If I select each dropdown induvidually,
But I can’t create a selector like this individually for each bus result. Because sometimes it is MSRTC and TSRTC, sometimes the result is APSRTC and TSRTC and some other result for some other bus search.
See screenshots below for 3rd possiblity for two different bus searches:
How to identify all RTC dropdowns uniquely irrespective of any bus search? Remember I don’t want to give like “APSRTC”, “TSRTC”, “MSRTC” in my selector. If I do so, I need to create selector for every state in India.
Please let me know if you have any doubts about the process. You can also search for same buses in the website, by giving same input data as in my screenshots.