Select Page
Codoid Blog

XPath Based QTP Object Identification

Being a leading QA Company, we write blogs on all prominent software testing topics and tools using our real-world experience. So stay sharp by subscribing to our Newsletter.

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)

Submit a Comment

Your email address will not be published.

Talk to our Experts

    Amazing clients who trust us

    image
    image
    image
    image
    image
    image