What's the way to make dynamic selector whenever class changed every time

Hey @Pardeep_Malik - welcome to the UiPath Community Forums :partying_face:

To make selectors dynamic you can use an Asterisk * and a Question mark ?

You can use two Regex Quantifiers in selectors: * and ?
A selector might be [type=‘search251’] and the 251 might change every time you click refresh or load an application. You can use an asterisk to allow this to be any values. Like this: [type=‘search*’].
You can use an asterisk * (1 to unlimited) and ? (0 or 1) the same as regex.
You can also use full regex in selectors when you need to for really tough scenarios