title: Selenium-Webdriver JAVA:- i am getting error ""org.openqa.selenium.NoSuchElementException: no such element""" but Appointment Icon is present
body: <p>I want to verify the tool tip but getting error no such element. I have confirmed that element is exist.</p>
  
  <p>Java Code:  </p>
  
  <pre><code>String toolTipTextAppointment = driver
                  .findElement(By
                          .id("//*[@id='EditView_NOTE_POPUP']/table/tbody/tr[2]/td/table/tbody/tr[3]/td[2]/table/tbody/tr/td[1]/a/img")).getAttribute("title");
  System.out.println(toolTipTextAppointment);
  </code></pre>
  
  <p>HTML Code:</p>
  
  <pre><code>&lt;td nowrap="nowrap" style="border:0px;"&gt;
  &lt;a class="" href="javascript:void(0);" onclick="showPopupActivity('Meetings','activityPopupFormAraContent',440,600);"&gt;
  &lt;img style="border: 6px none;" title="Appointment" src="themes/AutoAccelerator/images/calender_icon.gif"/&gt;
  &lt;/a&gt;
  &lt;/td&gt;
  </code></pre>