0

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.

Expedito
  • 7,771
  • 5
  • 30
  • 43
stso
  • 21
  • 1

0 Answers0