Reputation: 5085
just wonder whether it's possible to make an internal extra request to an image without using separate code. eg,
var browser = new IE();
string url = "https://www.google.com/"
browser.GoTo(url);
// extract http://www.google.com/images/logos/ps_logo2.png
//using a http request using browser ?
browser.Images
wont let me save the image :|, how can I make an external request to get the image ?
Upvotes: 0
Views: 967
Reputation: 2418
Maybe these steps work:
var image = browser.Image(Find.First())
browser.GoTo(image.href);
var screenshot= new UtilityClasses.CaptureWebPage(_browser).CaptureWebPageImage(false, false, 100);
var width = image.Style.GetAttributeValue("width");
var height= image.Style.GetAttributeValue("height");
HTH, Jeroen
Upvotes: 0