Why Selectors in UIPath becomes invalid while running the project?

Hello team,

I am working on a process. When I use open browser/attach browser activities and check selectors, they remain in valid state. But while executing the process the selectors becomes invalid and throws an error. I tried using wild characters, clicking on the tab, clicking on the html window page, etc. but nothing works. How can I create a valid static selector?


The selectors will be valid only when the window that was use to indicate the selectors is activate or on screen!!!

Now if you have that still open but the page is refreshed and the selectors are still erring out then we will need to compare both the selectors!!!