As shown in the figure, how to replace part of the URL with variables in the activity of opening a browser? Or is there any other way to achieve it?Thanks
You can pass the Url along with the variable as below.
"https://detail.tmall.com/item.htm?id="+strValue
Here strValue variable is of type String.
Very good! Can I do the same in the middle of the URL?
Yes. Don’t think of it as an URL, but as a string.
If you write ‘hello world’ in it it wil enter that in the adress bar. So you can build up your URL string any way you want,. concatanating variables, references to dictionaries or datatables, as long as the total of the URL expression is a valid string.
It is the browser that validates the actual content of the string.
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.