Scrape the data in a website

HI all,
First of all I want to say sorry if my asking too much is bothering you.
Regarding my scenario, I want to scape the data in the website: traveloka.com/en-vn/flight/fullsearch. I will collect the Airline, Departure time,… and store them onto a data table
And when the user has an excel file of all the flight, they might want to pick one and ask me to tell more information about the ticket type,… which will be displayed after clicking on the “Choose” button.
But when I try to use Extract Datatable, I cannot find any URl which may differentiate between the options, so Im unable to base on URL to do the next activity. (Using for each row + url and fetch the data accordingly).
So I Plan to use For Each Row in the data table, and use the click activity to click on the choose button accordingly. But as you can see on the page, there are a number of choose buttons according to different airline, departure time,… so I will have to adjust the selector. And i found out the “innertext=‘VietJet Air22:25*’” which contain of the airline name + departure time (and other relating information). And looking back as the data table I have fetched in the first place, my first column name “Airline” and consist of all the relating airline name, and also a departure time column,… so I want to edit the inner text like row(“airline”).ToString+row(“Depaturetime”).Tostring+*
but it didnt work.
Do you have any solution for my scenario.
Thank you in advance

Hey you can use Anchor base activity where you can use anchor as “departure time” and click choose button.
Hope it helps…

but it is not dynamic :((. I still have to edit the selector. And I have an excel file consisting of the departure time but I cant use row(“”).Tostring in the selector right?

You can try assigning the row(“Your Column Header”).toString to a variable
And then use that variable in selector
Try and let us know the result

1 Like

You can use for each Row and assign as current row (“department”).tostring,and use this variable for aaname in anchor base selector …

1 Like

Can it identifies the element if the element not in the screen at the time using dynamic selector
Or I need to put an action like scroll if cannot find the element?
Thank you in advance

Can it identifies the element if the element not in the screen at the time using dynamic selector
Or I need to put an action like scroll if cannot find the element?
Thank you

if you are using fuzzy selector as an anchor then it will automatically find the position.


It didnt work btw :((

Hey @QUY_T_TAM_8.0_IELTS
S.xaml (19.1 KB)

Check this and then assign the Time variable with currentrow(“YourDepartureTimeHeader”).tostring

Hope it helps you out

Thank you. It worked for me.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.