QTP - Link between label and textbox
I came across this question in an interview. There is a webpage which has several textboxes. All the textboxes have the all the properties which are same. There is a corresponding label beside each textbox. The page is very dynamic and the number and order of the appearance of the textboxes varies each time. Is there any way by which we can identify any textbox with respect to its corresponding label? The above label and textbox combinations are not present inside any webtable.
Let me know if any information is missing here.
It is the perfect example of - "Where to avoid automation".
You can achieve this using Visual Relation Object Identification feature in QTP.
QTP Inside Out - Mansoor Shaikh | All about testing/Automation
this question more likely to test - could or should
obvious it can be done but based on the importance....