03-07-2012, 07:21 PM
hi vinod123! thanks for your solution!
however, i've already tried this solution in the past on another project. qtp is terrible with object repository locks. if you load one it "locks" it and most of the time when you try and run the script again it gives a "general runtime error". even opening the repository directly in the qtp repository manager confirms it's locked. plus, there's not even a close() or release() function on the repository object.
would there be a way to make qtp fallback to the object repository when using GetTOProperty() with the object doesn't exist on the page?
however, i've already tried this solution in the past on another project. qtp is terrible with object repository locks. if you load one it "locks" it and most of the time when you try and run the script again it gives a "general runtime error". even opening the repository directly in the qtp repository manager confirms it's locked. plus, there's not even a close() or release() function on the repository object.
would there be a way to make qtp fallback to the object repository when using GetTOProperty() with the object doesn't exist on the page?