Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Xpath based Identification in QTP 11.0
#7
Solved: 10 Years, 9 Months ago
Hi,

Consider the below HTML object
<INPUT class="hover" id=1452 size=45 value="Enter id" name=n>
Now we can identify this object using various XPATH combinations.Few examples shared below
  • //INPUT[@class='hover']
  • //INPUT[@id='1452']
  • //INPUT[@id='1452',@class='hover']

By using such XPATHS, we can also limit our object search.For instance;if we want access to an object inside a WebTable Cell, we know that the object will have a parent with a TD html tag.In which case we can use XPATH like
//TD//INPUT[@name='n'

Regards,
Ravi
Reply


Messages In This Thread
RE: Xpath based Identification in QTP 11.0 - by ravi.gajul - 07-10-2012, 11:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question QTP Object Identification hierarchy sivakumar 2 2,842 01-22-2014, 03:48 PM
Last Post: sivakumar
  When i use xpath in OR in QTP 11, its not working ginne 0 2,770 11-12-2013, 10:02 PM
Last Post: ginne
  Automating OracleForms Based Application - QTP QTPBeginer 0 2,433 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,491 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,672 01-16-2013, 05:03 PM
Last Post: siva.kanukollu@yaho.com

Forum Jump:


Users browsing this thread: 1 Guest(s)