After I find a special element, I want to get its XPath. Is there any possibility to get the XPath of an SimpleXML element? Something like:
$xPathString = $element->getXpath();
I need the XPath in order to pass it to the 'click' method of a Selenium test case.