How to extract multiple data tables dynamically from abhibus website?

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:

  1. Only private travels data is available in the results. It means that only 1 data table needs to be extracted
  2. 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
  3. 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:
Screenshot (345)
Screenshot (344)

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.

Hello @Surya_Narayana_Korivipadu!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

1 Like