@caggarwal
Checking for the existence of that element is going to be a good approach to this issue.
I would make the password reset a separate workflow, so if you detect the new password popup you invoke the workflow and it takes care of setting a new password and updating the Orchestrator asset. If you will often be updating Orchestrator assets it might be worth it to make that its own distinct workflow as well so that you can call it from other projects.