title: Using Selenium, xpath cannot find 'text' element
body: <p>I'm new to Selenium and have a problem to find an element by XPath. I was trying to handle this issue but spent too much time on it and it still doesn't work. </p>
  
  <p>I'm trying to automate file downloading from <a href="http://www.oldapps.com/firefox.php" rel="nofollow noreferrer">this</a> site.</p>
  
  <p>I'm searching for the element which contain version name and afterwards I need to click the download icon accordingly.</p>
  
  <p><img src="https://i.stack.imgur.com/VDCNV.jpg" alt="example"></p>
  
  <p>I'm writing the following code in order to find element</p>
  
  <pre><code>var element1 = driver.FindElement(By.XPath("//*[@id='versiontable']/div[3]/a[Text()='Firefox 22.0 (Beta 2)']"));
  </code></pre>
  
  <p>However, it doesn't work, element cannot be found.</p>
  
  <p>And after I need to click a download icon accordingly. I'm not sure how to click element which is relevant for current version of firefox. Any suggestions?</p>