title: Python, selenium Can't hook following-sibling element as xpath
body: <p>I have following html code: </p>
  
  <p><a href="https://i.stack.imgur.com/qRyDr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qRyDr.png" alt="enter image description here"></a></p>
  
  <p>I need to hook the "edit" icon for particular element which has title "test".
  I tried to do </p>
  
  <pre><code>//*[contains(text(), 'test')]/following-sibling::div/span[@title='Edit']
  </code></pre>
  
  <p>But it doesn't work.
  I can't identify this element by just title = Edit, because there are a lot of elements which will have this button edit. The only unique this is first title "test" and following sibling "Edit".</p>
  
  <p>Any ideas? Would appreciate any help.Thank you </p>