Azeddin_Margani wrote:
My attempted code:
.ClickItem ("Product Order: "Project.Variables.UserData..Value("ProductName") (Adult). Card "Project.Variables.UserData.Value("ProductName")", 0);
That's almost correct. You want to concatenate the strings using +:
.ClickItem("Product Order: "
+ Project.Variables.UserData.Value("ProductName")
+ " (Adult). Card "
+ Project.Variables.UserData.Value("CardNumber"), 0);
Alternatively, you can use aqString.Format to build the string. %s are placeholders that will be replaced with the variable values:
var strItem = aqString.Format(
"Product Order: %s (Adult). Card %s"),
Project.Variables.UserData.Value("ProductName"),
Project.Variables.UserData.Value("CardNumber"));
...ClickItem(strItem);