 <p>Your <code>xPath</code> seems to be wrong try with below <code>xPath</code> :-</p> <pre><code>//a[text()='Study1_AS_06-20-16_1.xml']/preceding::input[@name='.select'] </code></pre> <p><strong>Note</strong> :- for more clarification about <code>xPath</code> need to follow <a href="http://www.w3schools.com/xsl/xpath_axes.asp" rel="nofollow">this</a></p> <p>Hope it will help you..:)</p>