Hyderabad to ongole Automation

Need to automate the website and take table extraction that I know and it is working.

But I need to click on all the available options to get the rate and then save it to the table.

Need to click on the sleeper refresh to get the rate.

@Rakshith,

Can you share the website link so I can check how you can do this.

@ashokkarale

Website: IRCTC Next Generation eTicketing System

From is Hyd and to is Ongole & class is sleeper and date could be anything in sept 2025.

Once you click search you have the element.

I tried to use for each ui element to identify and under Do used click activity but it does only for 1 or 2.

@Rakshith,

Before extracting data use For Each UI Element activity to click on each refresh sleeper category refresh button.

Once the prices are visible, you can just add the price in your data extraction.

Sample code:
TrainFinder.zip (1.3 MB)

I am using 2023.10.3 version and I do not have type into for click and for each ui element

additonally, it clicks for only first element and then throws an error

@Rakshith

The “For Each UI Element” activity was introduced in the UI Automation activities package with version 22.4 of the UiPath.UIAutomation.Activities package - not the System package. This activity specifically enables iterating over multiple detected UI elements and is available within the “Modern” set of UI Automation activities starting with v22.4 (May 2022).

Just make sure you are using UiPath.UIAutomation.Activities package version > 22.4 and Modern design. You should be able to find it.

Yes Indeed sir,

After updating it is working

Thank you so much Ashok sir, Really appreciate your help and Guidance as always.

Always Inspired to become like you some day.

1 Like

Glad to help @Rakshith :blush:

It worked for sometime but again there is an error that it only clicks the first one and unable to detect the next ones in line

Please help

@Rakshith,

Try adding delay before the bot starts clicking on each buttons. There could be delay in loading the Ui Elements.

Also try changing the Input method to Hardware events or Windows Message