Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Xpath based Identification in QTP 11.0
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Xpath object identification is a new feature in QTP 11. Here is an example I would like to share.
Code:
Dim oPage  
Set oPage=Browser("name:=Google").Page("title:=Google")  
oPage.WebEdit("xpath:=//INPUT[@name='q']").Set "learnqtp" 'Entering value in Google textbox.  
oPage.WebButton("xpath:=//INPUT[@value='Google Search']").Click'Clicking Google Search button.

For those of you who doesn't know what an xpath is...
In simple terms its a unique address of a particular element in a webpage.
Reply


Messages In This Thread
Xpath based Identification in QTP 11.0 - by ravi.gajul - 12-30-2011, 06:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question QTP Object Identification hierarchy sivakumar 2 2,963 01-22-2014, 03:48 PM
Last Post: sivakumar
  When i use xpath in OR in QTP 11, its not working ginne 0 2,910 11-12-2013, 10:02 PM
Last Post: ginne
  Automating OracleForms Based Application - QTP QTPBeginer 0 2,532 04-28-2013, 06:46 PM
Last Post: QTPBeginer
  Choosing Add-ins in QTP When Oracle forms or other IDEs used in web based application QTPBeginer 0 2,621 03-27-2013, 11:06 PM
Last Post: QTPBeginer
  QTP does not seem to support xhtml based java objects siva.kanukollu@yaho.com 0 2,781 01-16-2013, 05:03 PM
Last Post: siva.kanukollu@yaho.com

Forum Jump:


Users browsing this thread: 4 Guest(s)