Micro Focus QTP (UFT) Forums
Xpath based Identification in QTP 11.0 - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Xpath based Identification in QTP 11.0 (/Thread-Xpath-based-Identification-in-QTP-11-0)

Pages: 1 2


RE: Xpath based Identification in QTP 11.0 - janassanit - 11-05-2012

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.


RE: Xpath based Identification in QTP 11.0 - ravi.gajul - 11-05-2012

Could you please post the source code?


RE: Xpath based Identification in QTP 11.0 - krr - 11-06-2012

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?


RE: Xpath based Identification in QTP 11.0 - ravi.gajul - 11-07-2012

Hi,
Please see https://www.learnqtp.com/xpath-based-object-identification-qtp/
This should give you the basic understanding of XPath and its usage

Regards,
Ravi


RE: Xpath based Identification in QTP 11.0 - ginne - 11-12-2013

Hey Ravi can you please help me with the thread : When i use xpath in OR in QTP 11, its not working