【问题标题】:Unable to locate xpath for an element "::after"无法找到元素“::after”的 xpath
【发布时间】:2014-12-02 02:49:12
【问题描述】:

我有以下代码:

<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>

我需要获取 ::after 的 xpath,我无法获取 xpath。我已附上图片。

【问题讨论】:

标签: selenium selenium-webdriver


【解决方案1】:

请试一试:

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

【讨论】:

    猜你喜欢
    • 2020-06-14
    • 1970-01-01
    • 1970-01-01
    • 2022-07-05
    • 1970-01-01
    • 1970-01-01
    • 2017-07-19
    • 2019-11-19
    • 2020-04-09
    相关资源
    最近更新 更多