SVG 意为可缩放矢量图形(Scalable Vector Graphics)
定位svg元素要用xpath的name()函数,比如//svg/line[2],要用//*[name()='svg']/*[name()='line'][2]"代替

刚验证了一下,这样写是可以的
//div[@class='tg-tree-item'][text()='sharing']//ancestor::div[contains(@class,'tg-row')]/div[contains(@class,'action-menu-icon')]/div/div/*[name()='svg']

相关文章:

  • 2021-08-16
  • 2022-12-23
  • 2018-10-09
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2021-05-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2018-11-30
  • 2018-03-17
  • 2022-12-23
相关资源
相似解决方案