Using XPATH to select specific input element when text is on another child's grandchild : [Screenshot link][1]


  [1]: https://i.stack.imgur.com/zoC7T.png

I'm trying to target this specific input element while using the textfile name "timmy.txt". I'm not entirely sure why `//div//a[contains(text(), "timmy.txt")]//input` does not work in this situation. Can someone please assist me with why this xpath doesn't work and also provide a solution I can use that will allow me to target this input element by using the textfile's name (ie: timmy.txt)? 