I think I understand your problem
To answer the above question, update the selector to be like this:
‘* pts to *’
You need to update any dynamic vaules with a *. The asterisks(*) will handle the different/dynamic values in there.
To get the dynamic value follow these steps:
- You need to use a Get Attribute Activity to get the value of the “text” selector regardless of its value. and save it to a new Variable (say “str_Raw”).
To do this:
- Determine the name of the selector (edit selector). “text”
- Insert a Get Attribute activity.
- Indicate element.
- Update the “Attribute” field from the properties panel with the name of the selector.
Once you have done this, we need to manipulate the string to get our values. I am using Regex to do this. Then we need to save each value to a new variable.
Obtain the Points value (“600”) using this Regex pattern - preview the pattern here. This value is saved as Str_Points.
Obtain the last word (obtain “Gold”) using this Regex Pattern - preview here. This value is saved as Str_LastWord.
Review the results / output pane.
Please take a look at the workflow I have created for you to review
Main.xaml (7.8 KB)
Hopefully this helps you