Hello,

Is there any method available through which I can convert relative XPath to absolute XPath.

for eg, below is my xml

<mainNode>
      <element1>
               <firstName>Kunal</firstName>
               <lastName>Chauhan</lastName>
      </element1>
</mainNode>


Now, if I pass below XPath to any method.
   //firstName 
    OR
   /mainNode/./firstName

I will get below my expected XPath
my expected XPath is :   /mainNode/element1/firstName

Thanks and Regards,

--
Kunal Chauhan
[+918655517141]