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
Please check these posts from the great
@loginerror! Fuzzy matching in Selectors
Fuzzy string matching is a technique to search strings which are not a 100% match and match the specific pattern approximately, rather than exactly.
Let’s say I want to create a selector which needs to be resilient to user typos or similar user input with a key work I expect to be entered a search field.
First, I have opened up a bing.com in my borwser and searched for ‘uipath certification‘ text:
When I get a selector for the input field, the ‘title’ attr…
Variables in Selectors
This tutorial will teach you how to easily use variables in your selectors. In other words, we will be making dynamic selectors without the use of the old method of concatenating strings. How cool is that!
For the purpose of this tutorial, I will make 1 click in the Notepad app.
Feel free to also reference our documentation here.
1. First, we will indicate the element we want to click on. In this case, it will be File menu in Notepad:
This results in the…
Regex in Selectors
#FeatureBlog - 19.10 - Using regular expression (Regex) in the selector attributes - News / New Features - UiPath Community Forum
Hopefully this helps you
@sangeethaneelavannan1 @Steven_McKeering for sharing the above articles.
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
This is an example of one user. For different users the value will vary.
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.
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
@Steven_McKeering Sorry for late response.
First I’ll thank you for replying
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 ?