【发布时间】:2020-01-20 12:39:27
【问题描述】:
<span _ngcontent-c77="" class="status-label success" tooltipcontainer="body" tooltipheader="Error" tooltipmode="click" tooltipposition="top" data-test-id="status"> online </span>
在 xpath 中我可以找到这个元素
//*[@data-test-id="status" and text()=" online "]
但我不明白如何使用 css 选择器找到包含文本“在线”的这个元素。请帮帮我。
【问题讨论】:
标签: python selenium css-selectors