我正在尝试提取文本“2000”并将其存储在 HTML 下方的字符串中:
<table class="table" _ngcontent-c13="">
<tbody _ngcontent-c13="">
<tr _ngcontent-c13="">
<th _ngcontent-c13="" scope="row">Amount</th>
<td class="" _ngcontent-c13="">
<b _ngcontent-c13="">$2000</b>
</td> <!-- Added by edit -->
</tr> <!-- Added by edit -->
</tbody> <!-- Added by edit -->
</table> <!-- Added by edit -->
我正在尝试低于 XPath,但它正在返回null:
String text= driver.findelement(by.xpath("xpath="//table[@class='table']/tbody/tr[1]/td")).getAttribute("value")
慕容森
繁星点点滴滴
拉丁的传说
相关分类