Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Xpath based Identification in QTP 11.0
#11
Solved: 11 Years, 3 Months, 3 Weeks ago Rolleyes 
Hi.
Very useful context.
Should we also feed the xpath in Repository?

I am trying to get an WebElement with xpath, but it doesnt work somehow.

Code:
Dim oPage
Set oPage=Browser("x").Page("x")

oPage.WebElement("xpath:=//div/a[@id='vsAppLnkLayerPrintClose']").Click
and i feed the xpath in WebElement for xpath-attribute in the repository.

can somebody help me solve this. Thanks in regard.
Reply
#12
Solved: 11 Years, 3 Months, 3 Weeks ago
Could you please post the source code?
Reply
#13
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Ravi,

I was searching for Xpath concept and found this thread. I would like to know more about this. Are these xpath properties and values different than normal objects if so how to retrieve these properties and values?
Reply
#14
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,
Please see https://www.learnqtp.com/xpath-based-obj...ation-qtp/
This should give you the basic understanding of XPath and its usage

Regards,
Ravi
Reply
#15
Solved: 11 Years, 3 Months, 3 Weeks ago
Hey Ravi can you please help me with the thread : When i use xpath in OR in QTP 11, its not working
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question QTP Object Identification hierarchy sivakumar 2 2,969 01-22-2014, 03:48 PM
Last Post: sivakumar
  When i use xpath in OR in QTP 11, its not working ginne 0 2,913 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,622 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,785 01-16-2013, 05:03 PM
Last Post: siva.kanukollu@yaho.com

Forum Jump:


Users browsing this thread: 4 Guest(s)