Xpath 选择没有标记名、属性的文本

问题描述 投票:0回答:1
selenium-webdriver xpath text attributes tagname
1个回答
0
投票

你可以试试这个:

//div[@class='TestClass'][contains(.,'123456789')]/span[1]/following-sibling::text()[1]
© www.soinside.com 2019 - 2024. All rights reserved.