N.B.:
i also tried to use elementID in selector "<mbl android:className='android.view.View' elementId='8c828f2a-4c30-4752-8473-11ec318b5977' />"
but the activities are executed with no error, but also with no action…
I’m using Studio 2022.10 and MobileAutomation Package 22.10.1
Building selectors with dynamic content is currently not supported for native app mobile selectors.
While we do plan to support this in the future, there are alternatives that can be used in the current version to make this work (assuming that what you want is to type text into the field).
Try this: In Indicate/Edit Target mode you should be able to use the fuzzy selector (with a potentially lower threshold) together with an anchor on a more static element to achieve the same result.
Thanks Alvin for the hint, i tried that before, but the fuzzy selector found the wrong element.
But now i only slightly changed the regex: accessibilityId='VKP
2,65 €' → accessibilityId='VKP
*' instead if accessibilityId=‘VKP*’.
with the additional “
” uipath was able to find the element.
I am working on mobile device,
using activity “get text” for mobile automation,
i understand that wildcard does not work for mobile automation,
so i try to do regex inside selector,
inside the strict selector i used variable and regex as shown below,
yes, you should activate the fuzzy selectors, here you can use wildcards. In my case the expression without linebreaks were not working, hence i left then in the expression. that was working. Take a look on my prev. post and the explanation of alvin
Cheers
Mti
N.B.: remove from the static selector the dynamic part, just the className attribute