user5364649
user5364649

Reputation:

python selenium xpath solution

enter image description here

It is possible to do this:

Now I need to get content of class odd or just text from <td> 161.5 </td>, but my condition has to be eu="1.90"

Is it possible to get content of Ancestors (in my case class odd) depending on attribute values of Descendants (in my case eu=1.90)

Upvotes: 2

Views: 77

Answers (1)

Andersson
Andersson

Reputation: 52665

Try this XPath and let me know in case of any issues:

//td[span[@eu="1.90"]]/preceding-sibling::td

Upvotes: 2

Related Questions