Take this simple code:
<! DOCTYPE html>
<html>
<body>
<div id="001">
<div title="hi">hi</div>
</div>
</body>
</html>
How can I find the id "001" by knowing the title "hi" with this:
driver.find_elements_by_xpath("//*[@title='hi']")
I've already seen this: Select parent element of known element in Selenium but it doesn't work on Python