QTP identifies the object in following manner-
1) First with mandatory and assistive property. If these are not sufficient
then "Ordinal Identifier"
2) By using "Smart Identification".
In your case you have different object of same type. First they have
different names, so object will be identified easily.
If there are more than one object with the same name than use "Ordinal
Identifier - Index".
With "Index" property object will be identified.
We can use the descriptive programming for identifying the 6th checkbox from a bunch of checkboxes on a page.Dim obj_ChkDescSet obj_ChkDesc=Description.Createobj_ChkDesc(“html tag”).value = “INPUT”obj_ChkDesc(“type”).value = “checkbox”Dim allCheckboxesSet allCheckboxes = Browse(“Browser”).Page(“Page”).ChildObjects(obj_ChkDesc)allCheckboxes(5).Set “ON”As index value start from the value '0', so 6th object is having index value '5'
Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.