Forum Discussion

Azeddin_Margani's avatar
Azeddin_Margani
Contributor
9 years ago

Insert variables in a dynamic URL

Hi,   Could someone help, please - I'm trying to code URL that has got dynamic variables?.   The mapping name is: Aliases.browser.Page("https://www.busstage.com/regionaltickets/west-area/Londo...
  • Colin_McCrae's avatar
    9 years ago

    Your variables are inside double quote. So they'll be treated as part of the string.

     

    Try:

     

    "https://www.busstage.com/regionaltickets/*/" + Var1 + "/megarider"

     

    (Not sure what language you're using. May need to use & instead of + to concat the string parts)