I just started work as a QA analyst for a company in Pittsburgh. Right now I'm doing some preliminary automation tests on the company's order entry app. It is a visual Windows based application. One test I tried to run clicked on a magnifying glass to bring up a list of customers. When it tried to go a second time through the loop, I got an error saying that the magnifying glass click object could not be identified. One idea is that it loses that object the second time around because a cursor falls automatically on a different field in the screen. Any other ideas? Thanks.
Several possibilities come to mind. Knowing what the exact error message is can help.
For example, sometimes the caption of the window changes (like when Notepad changes to include the name of the document you opened or saved). If that is the case, then the error message probably tells you it can't find the parent window of your magnifying glass object.
Maybe it can find more than one parent window that matches the description it is looking for. This will throw the same error that it cannot find the parent, when what it really means is that it cannot distinguish a unique parent.
Maybe something else in your application changed, which caused your maginfying glass to change some property so QTP can't find it now. Or maybe this change affected a parent of the magnifying glass, like a tab control or a frame.
These are just the first possibilities that occur to me. Post your exact error message and maybe I can narrow down the search.
Another approach is to add the 2nd magnifying glass to your OR. Compare it to the first one to see what changed. Maybe the magnifying glass didn't change but a parent did - if that's the case then your OR probably created the entire chain of parent objects and added them all to the OR, so check the new parents against the old parents and see what changed.