Use Application Browser - Input Element

Here instead of fixed URL i want to use dynamic URL but a bit confused :thinking:

After making a search on a website I want to make table extraction but every time the URL of the website is changing so how can I make it?

I have tried on something but i could not succeed

What is the error message being shown for the Browser URL?

What is the full expression you have in Browser URL?

The URL only matters if it’s in the selector of Extract Table Data. You can edit selectors to make them dynamic or remove the changing value altogether.

1 Like

Hi @170290064

I think you are doing some mistake in concatenate the variables with the words. Please provide the error and full expression that you given in the Use application\browser activity.

Hope you understand!!

1 Like

Hi @170290064
By using log message or message box check whether it is correctly printing url or not

1 Like

Hi @170290064

Give .tostring for variable names you have mentioned in URL and I see that there is a wildcard(?) are using so after the use of wildcard give (+) to add to another variable.

Hope it helps.

1 Like

@170290064

So did you sort out?

Variable names are already string but the problem is i could not figure out how to make it ?

Hi @170290064

Could you share the syntax give in Browser URL?

Regards

https://www.sahibinden.com/motosiklet-kawasaki-z-1000-sx?a269_min=2016&price_min=100000&a269_max=2020&price_max=2000000

here is my variables :

-in_strCategory
-in_strBrand
-in_strModel
-inYearRange
-inPriceRange

Okay @170290064 which values you want to pass the variables. Please provide the whole requirements.

These are items that i m sending to the queue and then making search on the website.

Searching part is done but when i see the result page i dont know how to handle it

:thinking:

@170290064
Make another Variable

URL="https://www.sahibinden.com/motosiklet-"+in_strBrand+"-"+in_strModel+"?a269_min="+inMinYearRange+"&price_min="+inMinPriceRange+"&a269_max="inMaxYearRange+"&price_max="inMaxYearRange

You need to split Year range as min and max and price range aslo

1 Like

I did split when i make search on the website.

I ll try the answer that you dropped above. :+1:

@170290064 yes first make url in URL variable then pass it to Activity.

1 Like

I think there must be some different ways to make it because there will be a lot of options if you look at the Excel Input File. Sometimes there is no max price or min price or no price range. Sometimes there is no min year or max year or no year range.

Thats why i believe i should try different way which easier to table extraction of results in the same link.

Is there :thinking:

@170290064 Yeah I saw and I wanted to suggest you different way. Can you show me your web Home page their must be present filters or search criteria

https://www.sahibinden.com/bmw-3-serisi?a5_min=2012&a5_max=2016&price_max=4000000

This is the results page link after searching…

@170290064 I am not able to open it due to restriction can you take screen shot of it

Here it is :slightly_smiling_face:

@170290064 I am not able to see filters option as well in front end.
I would suggest make dynamic url by checking each field which is given in excel.
suppose Year Range is not available then discart that part from Url through if condition.

1 Like