What is the main difference between Index and Location in Object Identification in QTP?
Question ID: 105783
0
0
Marked as spam
Posted by (Questions: 11, Answers: 5)
Asked on January 9, 2015 6:23 am
176 views
Answers (2)
1
Private answer

Index :- Indicates the order in which the object appears in the application code relative to other objects with an otherwise identical description.

Index property values are object-specific. Therefore, if you use Index:=3 to describe a WebEdit test object, QuickTest searches for the fourth WebEdit object in the page. However, if you use Index:=3 to describe a WebElement object, QuickTest searches for the fourth Web object on the page-regardless of the type-because the WebElement object applies to all Web objects.

Location :- Indicates the order in which the object appears within the parent window, frame, or dialog box relative to other objects with an otherwise identical description.

Location property values are object-specific. Therefore, if you use Location:=3 to describe a WinButton test object, QuickTest searches from top to bottom, and left to right for the fourth WinButton object in the page. However, if you use Location:=3 to describe a WinObject object, QuickTest searches from top to bottom, and left to right for the fourth standard object on the page-regardless of the type-because the WinObject object applies to all standard objects.

Marked as spam
Posted by (Questions: 3, Answers: 1)
Answered on January 12, 2015 5:56 am
0
Private answer

Please provide more context for your question.

Are ''Index'' and ''Location'' properties of the object? If so, which one?

Are you asking for clarification about something you read in a help document? If so, which one?

Marked as spam
Posted by (Questions: 1, Answers: 101)
Answered on January 9, 2015 9:05 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top