Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
找到一个特殊元素后,我想获取它的 XPath。是否有可能获得 SimpleXML 元素的 XPath?就像是:
$xPathString = $element->getXpath();
我需要 XPath 才能将其传递给 Selenium 测试用例的“点击”方法。