2014-12-01 116 views
0

我有下面的代码:无法“后::”来定位元素的XPath

<em class="x-btn-split" unselectable="on" id="ext-gen67"><button type="button" id="ext-gen33" class=" x-btn-text"><div class="mruIcon"></div><span>Cases</span></button>::after</em> 

我需要得到::中的XPath之后,我无法获得的XPath。我附上了图片。

xpath

+0

你打算用它做呢? – alecxe 2014-12-01 17:24:20

+0

我不认为硒支持它。 https://thenewcircle.com/static/bookshelf/selenium_tutorial/locators.html#_css – 2014-12-01 17:27:47

+0

这是什么用例? – Arran 2014-12-01 19:53:45

回答

1

请尝试:

//em/button/following-sibling::text()