Scripts work fine in dev or any lower environment but same selector not working in production

Hi,
I develop a simple workflow for the allegro application, the script is running fine in Dev and acceptance. but when i move the code into production,the same script fail and unable to find selector.

not sure how to make script more stable

Is your swap between allegro dev and prod environments?

It’s possible that some of the selectors are different in prod.

Are you able to share the selectors of an element that’s failing in prod?