Latest Inquiries - Data Extraction Software

Selecting first row in an autocomplete list

Submitted: 6/13/2017

Hi,

I would need to extract the data from the following website:

https://www.scania.com/global/en/home/dealer-locator.html#/

for three countries (GERMANY, SPAIN, CZECH REPUBLIC). First, the country name should be written in the search box, then an autocomplete list shows up and I would always need to select the first row which triggers an auto submit action. How can I select this autocomplete value and thus trigger the auto submit?

I've created the attached project, however I cannot make the autocomplete list to show up. 

Thank you,

Laurentiu

Scania.rip

Replied: 6/15/2017 11:45:53 PM

You welcome Laurentiu. It's our pleasure to help you.


Replied: 6/15/2017 7:44:26 AM

Hi Brian,

Thank you for giving me the idea to use the API link! Yes, the code DE comes from "Deutschland" and these codes are standard, so I guess I can use them for the start links.

Best regards,

Laurentiu

Replied: 6/14/2017 3:20:49 PM

Hi Laurentiu,

I find the action events to load the autocomplete list but I spend some time to find the action events to click or select it but not luck, it seems elusive to me no wonder these thing is powered by Google.

To show up the autocomplete suggestion list, you can use this Action Events in the Advance tab, 

input
change
blur
blur
focus

You can see it in the attached agent.

Fortunately, you can do the alternative. The site has API link for all search results by country, in this sample, https://www.scania.com/api/dl/dealers?country-code=DE  is a result from Germany. I am puzzled why the code is DE. But because there are only 2 letters required for the country, you can generate a 676 API URL based on the 26 letters of the alphabet.

Best regards,

Scania.rip