How to pass variable/arguments inside Browser URL

I am trying to pass arguments to a Use Application browser activity as follows

https://de.indeed.com/jobs?q=+in_JobTitle+&l=+in_Location+

where in_JobTitle and in_Location are the argumnents.
What is the correct way of achieving this ?

@Sami_Rajput You can use variable and arguments in selectors to accomodate a dynamic value.

Here is the way, you can do it.

  1. You have to mention the argument/Variable in {{in_JobTitle}} or {{in_Location}}

Following is the example of the selectors where I have used the str_Title as Variable.

image

Hope this help!!

Thanks
Shree

Hi @Sami_Rajput

If you want to open the URL, just crea the path and then pass it to the browser url property, in the selector just put the browser where you want to open this URL like this

image

"https://de.indeed.com/jobs?q=" + jobTitle + "&l=" + jobLocation

Regards

Hi @Sami_Rajput

when you are giving the URL in Use application\browser activity or in any other activity you give the URL with surrounded with Double quotes(“URL”) like this. If you want to pass the variables between the URL use the concatenation function which is used to concate the string and variables.
Find the below example for better understanding -

https://de.indeed.com/jobs?q=“+in_JobTitle+”&l=”+in_Location

Note - No need to encapsulate the variables with in Double quotes

Hope it helps!!

@mkankatala
@fernando_zuluaga
@Shripad_Sarwate

the variable is a long string like this
in_job_Title=(Java Developer and Python Developer)

And its opening the URL in multiple windows like this,


I want to open a proper URL

Can you please provide the requirements.

@mkankatala
Sure,I want to extract some data from a webpage and using Screen Scraping activity.

In browser URL, i am providing the URL of the page where I want to extract data from but it’s not working and opening webpages like this

Have you checked the URL working manually if it works then the passing of variables also works

@mkankatala
yes, its working manually