Selectors question

Hi,
In UI automation sometimes I find the framework shows both strict and fuzzy selectors and sometimes only fuzzy selectors. Why is that? When do we have to keep both fuzzy and strict selectors?

Thank you,

Hi @A_Learner

In some cases, UI automation frameworks provide both strict and fuzzy selectors for the same element. This is because strict selectors may not work correctly in all cases. For example, the ID or class name of an element may change dynamically, making it difficult to use strict selectors. In such cases, fuzzy selectors provide a more robust alternative.

https://docs.uipath.com/studio/standalone/2022.10/user-guide/about-selectors

Hope this helps,
Best Regards.

Thank you @arjunshenoy

In that case, can I uncheck strict selector and only select fuzzy?

Thanks a lot,

@A_Learner

First check if you are able to get a stable selector, then you go with Strict Selector
If not then only you can disable the Strict Selector and enable the Fuzzy Selector

Hope this may help you

Thanks,
Srini

@A_Learner

Strict selectors are considered to be stable & are often used. However, if your application’s UI elements are not stable, and their properties can change frequently, using only fuzzy selectors might be more appropriate. Make sure you use things such as wild cards & variables in your selector to make it as reliable as possible.

Best Regards.

1 Like

Thank you, @Srini84 and @arjunshenoy for the awesome feedback.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.