title: How do I get the img tag "src" value from a Selenium Web Browser element as a string?
body: <p>I'm new to Selenium and i'm trying to get the "src" value from a <code>IWebElement</code> and convert it to a string (C#). I am able to get a simple text value from elements using their built in <code>.Text</code>, but that will only give me the inner html. Here's the sample code:</p>
  
  <pre><code>IWebDriver driver = new FirefoxDriver();            
  driver.Navigate().GoToUrl("http://somewebsite");        
  var val = driver.FindElement(By.TagName("img"));
  string imageSrc = ?????
  </code></pre>