Hello @soumiya,
Since the class remains constant, you would need to customize the selector to only look for the class attribute value and deselect the remaining attributes (name, ordinal, innerText , etc.) to enable PAD to find the element consistently.
Please follow the steps below to edit a selector:
- Search for the element that needs to be edited in the UI elements pane.
- Right click on the element and go to edit selectors.

- Hover over the selector captured and right click on it to open the selector builder to edit it.
- This will open up the selector builder which can be used to easily customize the selector as appropriate. In your case you would need to only select the class attribute because it remains constant and deselect the ordinal and InnerText attributes as they are dynamic.

Further, if the above does not resolve your issue, please send us the selector path of the target element and the URL where it exists so that we can provide a solution.
Thank you for trying Power Automate Desktop.