title: How to capture captcha image object with DotNetBrowser
body: <p>The website we have shown on DotNetBrowser contains a captcha image element. What is the method of capturing this element image type in code element? </p>
  
  <p>Web site address: <a href="https://paydas.its.gov.tr/hesap_yonetimi/giris" rel="nofollow noreferrer">https://paydas.its.gov.tr/hesap_yonetimi/giris</a></p>
  
  <pre><code>browserView = new WinFormsBrowserView(BrowserFactory.Create(BrowserType.LIGHTWEIGHT));
  //...
  browserView.Browser.SetSize(1024, 768); 
  Bitmap screenshot = browserView.Browser.ImageProvider.GetImage() as Bitmap; 
  DOMElement captchaElement = browserView.Browser.GetDocument().GetElementById("imgCaptcha"); 
  pictureBox1.Image = screenshot?.Clone(captchaElement.BoundingClientRect, screenshot.PixelFormat);
  </code></pre>
  
  <p>This method does not work healthy.</p>