1
嗨我試圖找到那些行保存數字30.1和-10.5,然後單擊託尼馬可。我正在測試VaR=driver.get_element_by_xpath("//id[contains(@class, 'PointsTabL PointsSel')]//*[contains(@title,'VaR')]")
,但沒有奏效。請有人幫助我嗎?Python Slenium從HTML代碼的相同部分獲取兩個元素
<td>
<a id="po-s-23320221-h" href="javascript:$M('po').onPoint('s',23320221,'h',30.1)" class="PointsTabL PointsSel">
<span class="VaR">30.1</span>
<span class="VaM">-10.5</span>
<span class="VaL" title="Tony Marco">Tony Marco</span>
</a>
</td>
太感謝你了!感謝你,我可以繼續。 – Johnny007