【发布时间】:2020-12-04 19:08:32
【问题描述】:
我想在 xpath 中使用正则表达式查找特定文本。
这是我的 xpath:
locator: //*[@class = 'android.widget.TextView' and contains(@text,'PriceBottomBarDialog-selector')]
这个“PriceBottomBarDialog-selector”保持不变,开始的文字不断变化。任何人都可以帮助使用正则表达式模式吗?
谢谢
【问题讨论】:
标签: java selenium xpath xpath-1.0