Is there some way for me to find the xpath of a web element already located by selenium?

前端 未结 0 1829
无人及你
无人及你 2021-01-16 09:35

I used an xpath search by text to find an element I wanted to locate.

location = browser.find_elements_by_xpath(f"//*[text()=\'{i[0]} \\u00a0\']")
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题