Interview Question : How do you know the location Id of an object if you know its index id?
Answer : Location is the position of the object from left to right and top to bottom within the parent window, frame, or dialog box relative to other similar objects. Index Id: is the order in which the object appears in your AUT relative to other similar objects. E.g if you have 2 links, then index id=0 will be first link and index id=1 will be the second link. The answer to this question is entirely dependent on where the object lies, whether it is within the same parent or not.
Interview Question Category : QTP
|