| || |
Object recorded differently by Object Spy and OR
I was trying to record an action on a sub-menu in my web application, but QTP did not record the action. So I tried to add the object into Object Repository (OR) first then use script to do the action. But it is strange that when I use "Add Object" from OR to click on that object, it only recognizes it as a general WebElement object. But if I use the Object Spy to check it, Object Spy can recognize it with the correct label.
Can anyone tell me why Object Spy and OR behave differently?
Re: Object recorded differently by Object Spy and OR
The first thing I would try is changing the Web Event Recording Configuration, under the Tools menu. By default, it is typically set to Basic; Setting it to Medium usually works. Especially if the sub-menu you are referencing only exists in response to a mouse over event that is not getting captured in your script.