0

找到一个特殊元素后,我想获取它的 XPath。是否有可能获得 SimpleXML 元素的 XPath?就像是:

$xPathString = $element->getXpath();

我需要 XPath 才能将其传递给 Selenium 测试用例的“点击”方法。

4

0 回答 0