Forum Discussion

sanj's avatar
sanj
Super Contributor
7 years ago

Can SOAPUI PRO do relative xpaths?

Hello folks:

I have had to use absolute paths because I cannot find a way to do relative xpaths?

is this doable.

BTW point is pretty cool way to get the xpath lol your version of firebug!

 

3 Replies

  • Yes, it can do the relative paths as well. please explain in detail what exactly you trying to do? I'm using relative path to set SSL cert from bin folder of SoapUI

  • groovyguy's avatar
    groovyguy
    Champion Level 1

    sanj: I've been able to use various types of relative XPATH statements.

     

    Instead of doing something like: 

     

    //Element1/Element2/Element3/Element4

    You can use the relative path below to reach the same point. 

    //Element3/Element4

    Depending on how many times this element appears in your XML the XPATH is running against you may end up with a collection of values instead of a singular value. 

     

    I hope that helps!

  • nmrao's avatar
    nmrao
    Champion Level 3
    It would be helpful if you can send the sample message and what xpath you have already tried and facing issue?