title: c# selenium image xpath download
body: <p>I want to download an image file via XPath using selenium. But I am getting the error that the file was not found.</p>
  
  <pre><code>      var resimadresi =  driveri.FindElement(By.XPath("/html/body/table[3]/tbody/tr/td/center/table/tbody/tr[2]/td[2]/center/table/tbody/tr[1]/td[4]/table/tbody/tr/td[2]/img"));
  
          WebClient webClient = new WebClient();
          webClient.DownloadFile(resimadresi.Text, @"image.png");
  </code></pre>