I am facing a very unusual kid of issue.
I am calling an object from a process, this object internally attaches to an already open web application window.
When I try to run the object alone(without calling from process), the object works fine without any issues and spies all the elements on the application.
But when I call the object from the process, the spying fails.