title: Selenium WebDriver HTML Code
body: <p><a href="https://i.stack.imgur.com/svqps.png" rel="nofollow noreferrer">This is what the error displays when I use the xpath</a></p>
  
  <p><a href="https://i.stack.imgur.com/nk9NS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nk9NS.png" alt="Xpath"></a>What command on the selenium webdriver would I use to click a text which has a xpath of </p>
  
  <pre><code>html/body/div[1]/div/div/div[2]/div[2]/div[2]/a
  </code></pre>
  
  <p>I tried using </p>
  
  <pre><code>driver.findElement(By.xpath("html/body/div[1]/div/div/div[2]/div[2]/div[2]/a")).click();
  </code></pre>
  
  <p>but still doesn't work... any suggestions?</p>