XPath object identification is a new feature in QTP 11. We would like to share an example for it using Google web page.
Code
Dim oPage:Set oPage=Browser("name:=Google").Page("title:=Google")
'Entering value in Google textbox
oPage.WebEdit("xpath:=//INPUT[@name='q']").Set "advancedqtp"
'Clicking Google Search button.
oPage.WebButton("xpath:=//INPUT[@value='Google Search']").Click
Comments(0)