All QTP test objects have these five methods in common:
- Highlight – Highlights the object, much like the highlight feature in the object-repository.
- ToString – Returns a string representation of the object. Usually it’s just the name.
- Init – As described here, re-links the test-object to the runtime object. Especially useful in a web environment, after a page refresh. It works like method .RefreshObject
- MakeObjVisible - QTP sometimes throws error while acting upon an object which is not visible or not in focus. So to overcome such type of errors, we can use “.MakeObjVisible” method.
No comments:
Post a Comment