How to insert variable in open browser link

Hi,

I have a requirement where I have to insert a variable in a chrome link.
Can someone suggest how to implement this.

I am already having a variable created where I am having the that value which i need to use in the link

HI @Riya_Bansal

Like this

"https://forum.uipath.com/t/how-to-insert-variable-in-open-browser-link/"+StringVariable

or

"https://forum.uipath.com/t/"+Variable+"/509145"

Regards
Sudharsan

Hey

you mean to get the link from the webpage that you are working on? or you have the link in that variable and just want to navigate there?

In here the variable value will be 509145

In Here the value will be how-to-insert-variable-in-open-browser-link

Regards
Sudharsan

HI @Riya_Bansal

This the URL link : How to insert variable in open browser link

Use Assign activity

LHS → create one variable ValURL
RHS → “how-to-insert-variable-in-open-browser-link”

Use like this in the Navigate activity or Browser activity

"https://forum.uipath.com/t/"+ValURL+"/509145"

Regards
Gokul

Hi @Sudharsan_Ka

yes exactly like this

You can pass it like the expression i given in your open browser @Riya_Bansal

Regards
Sudharsan

Have you tried like this? Can you share the expression with us? @Riya_Bansal

@Sudharsan_Ka
@Gokul001
My link is “http://900.900.90.11/li/test/?test=209#myList

Now in this i want variable at the place of 209.

Can you help me with this

Thanks in advance

Try this @Riya_Bansal

 "http://900.900.90.11/li/test/?test="+Your variable+"#myList"

Regards
Sudharsan

1 Like

Try with this expression @Riya_Bansal

YourVariable = “209”

"http://900.900.90.11/li/test/?test="+YourVariable+"#myList"
1 Like

Please make sure of your double quotes in the link

after entering in the open browser link please replace all the double quotes manually once @Riya_Bansal

Regards
Sudharsan

1 Like

Thanks @Sudharsan_Ka @Gokul001

It worked

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