title: How to verify if the image in Selenium using Webdriver
body: <p>How would I verify the image is displaying is the correct path/name in Selenium using WebDriver?</p>
  
  <p>I started using this code but not sure :</p>
  
  <pre><code>string _active = "&lt;img style="display: ;" alt="Active" src="../App_Themes/Default/images/check.png"/&gt;";
  driver.FindElement(By.XPath("//*[@id='ctl00_ContentPlaceHolder1_AddeCardControl1_gv']/tbody/tr[11]/td[7]/img")).Text.Contains(_active);
  </code></pre>