Hi @Rahul_Rajendran,
Yes your approach is good.
Other few approaches that I would consider are:
- Using CV to target the elements. As CV works on positioning of elements, it has less or no impact if element internal properties/attributes varies across environments.
- Additionally, because you would anyway have to work through selectors for another environment to have the selector configuration set up, i would consider having switch mentioning environment the process is being run on. Define asset for environment and have its values defined as “dev” for dev, “uat” for uat and “prod” for prod. So, according to the environment selected, activities/selectors will get executed. So basically, same activities under different switch cases with different selectors.
Hope this helps.
Regards
Sonali