假设要定位如下所示的 Elements,且文本 “1234567890” 对应参数 cluster_name:

<td  class="xxxx-body">1234567890</td>

 

具体定位方式如下:

driver.find_element_by_xpath("//td[contains(text(),'%s')]" % cluster_name)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2021-06-08
  • 2022-02-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2021-12-08
相关资源
相似解决方案