I have heard from UiPath that we cannot use * in Selector for Mobile Automation. Can anybody please tell how can I make the fuzzy or normal selector as dynamic then?
In below given example I want to make the yellow highlighted properties as dynamic
Let me elaborate my problem. There’s one mobile application and I need to get(using get attribute activity) the value of points. Please note in below image “600” and “Gold” will be dynamic. How can I make these attributes as dynamic
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.
Actually I’m looking, how to make any selectors dynamic in Mobile Automation. text attribute will vary for different users. I want to get the value of text but in Mobile Automation * doesn’t work
In addition to this problem, If the value of text is empty and I want to get the value of accessbility id, how can get the value of accessbility id ?