I have an object(push button) type of class "Link" captured in my shared object repository. I have noticed that the index of this object changes when it becomes disabled. For example wnen the object is enabled it indes was 0, and when it becomes disabled it index changes to 1.
Is there a way to check if this button is enabled or disabled?
"objects.exist" returns true in both cases.
Do I need to capture 2 different objects or there is a way to work with one object that I already captured?
Thanks maxj and Wasim. When my push button( link type of object) is disabled, I think QTP identifies that as a new object. That is the reason why index changes from 0 to 1. When I click on 'Highlight'button from Object Repository, it dos not highlight to the object, instead it highlights to the page.
For the same reason this message :
returns 'False' even though the object is disabled.