mais ça ne marche pas
For Each Captcha As HtmlElement In WebBrowser1.Document.Images If Captcha.GetAttribute("src").Contains("recaptcha") Then PictureBox1.Load(Captcha.GetAttribute("src")) End If Next
PictureBox1.Image = Image.FromStream(New IO.MemoryStream(New Net.WebClient().DownloadData("http://www.google.fr/images/srpr/logo3w.png")))
For Each Captcha As HtmlElement In WebBrowser1.Document.Images If Captcha.GetAttribute("src").Contains("image?c=") Then PictureBox1.Image = Image.FromStream(New IO.MemoryStream(New Net.WebClient().DownloadData(Captcha.GetAttribute("src")))) End If Next
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionFor Each Captcha As HtmlElement In WebBrowser1.Document.Images If Captcha.GetAttribute("src").Contains("/other/captcha") Then PictureBox1.Image = Image.FromStream(New IO.MemoryStream(New Net.WebClient().DownloadData(Captcha.GetAttribute("src")))) End If Next