| || |
objects from the object repository are not being used while recording
I know its been discussed before, but I haven't found a solution.
From what I understand, if I change the properties QTP identifies the object by, it will re-enter it to the object repository when recording.
Is that true? But is it fixed in later versions, because its a nightmare for me. I always change the properties of the object...
Thanks for any help
Re: objects from the object repository are not being used while recording
Oshrat -- there is nothing to fix, this is the proper behavior. If you change an objects properties, it is now a different object. The key is to only use those properties that you want to...and that will remain stable. You can adjust which properties QTP uses in the Object Identification dialog. For instance, a button labeled "Cancel" should always be labeled "Cancel". Make that the only property you use.
This can be very tricky for some objects like links where the text of the link is the only viable property and is dynamic. In these cases you will need to use regular expressions or descriptive programming to properly work with the object.