How to Fine tune the selector

Hi

In one of my process I did web automation. But every month they are performing maintenance activity. So, for few elements selector will change. Every month i am fine tuning selector. I used object repository. I tried with fuzzy selector It is not working for my case. So, what is alternative solution for this.

Note : No changes in the front end UI design. changes only with selctors

Hello

Can you share the selector and explain what is changing?

Cheers

Steve

Hi @BNK ,

Have you Tried Using Wildcard on the Selectors?
These can be quite useful when dealing with dynamically-changing attributes in a selector.
Example

If your Selector is something like this
title='s-Insight - Settings:AQWER'

Then by using Wildcards it can be Solved.
With Wildcard, It looks something like this

title='s-Insight - Settings:*'

Below is the Link for Your Reference
Selectors with Wildcards.

Hope it helps you out!

@BNK

Please show the selector and show what are changing?

Generaly rule would be not to use id …if you are using so …try to use innertext as you are saying ui design is not changing innertext would be same and also tags might be same…just check which are changing and stop using those attributes

Cheers

Make the selectors dynamic by using wildcards like (*) and (?).
While indicating the element see the properties of the selectors which you think will get change when you open the website again, and make those properties element dynamic by using such wildcards.
Let me know if you get stucked again.

Sample Selector

<html app='chrome.exe' title='Res*' / <webctrl class='expand-icon' idx='3' parentid='rdxRoot' tag='SPAN' /

Every time selector is changing for Parent id

See the selector is getting validate or not by not selecting parent id in UI Explorer editor.
If it is not getting validate then add wildcard in it.
parentid=‘*’

Try this two methods.

Hi, @BNK
-did you check if you use the wildcard for the parentid does it highlight same component?
-check the UiExplorer for the creating a unique selector

If i gave wildcard for parent id character it is not working

Try by removing parent id from your selector see if it is getting validate or not.

Try removing idx and parent id and identify if aaname is present,if present then include that and see if it is getting validated or not

Instead of using selector concepts, can we use any other concepts to choose the elements

Selectors in Studio Deep Dive course (UiPath Academy) offers great techniques on how you can fine tune. I’d recommend looking at Find Children activity with appropriate filter.

You have to figure out which properties are changing, and use properties that don’t change. If you want specific answers, you’ll have to show us the selector. Open UI Explorer and indicate the element, then post a screenshot of what it gives you, including the additional properties on the right side.

parentid=‘*’ is entirely useless and meaningless. Just remove the parentid from the selector.