Selenium 中的定位器:跨度类的 XPath

问题描述 投票:0回答:1

下面是跨度类,你们可以帮我找到以下跨度类的定位器值吗:

<span class="close_servey_close sec_popup exist_intent_close material -icons">
::before ==$0
"close"
</span>

我正在使用下面的定位器,但它不起作用,

//DIV[@id='survey_popup']/descendant::SPAN[contains(.,'close')]
selenium-webdriver
1个回答
0
投票

没有代码或更多信息,只能帮助解决此 XPATH

"//span[contains(@class, 'close_servey_close')]"

然后点击它,我想这就是你想要的

© www.soinside.com 2019 - 2024. All rights reserved.