-1

I want to compare two images with c# and selenium webdriver to improve my tests. For example program is comparing two images and when the images are the same, program can move on.

1 Answers1

0

Compare images in c# is well written here:

Algorithm to compare two images in C#

You want to download img from webpage?

In selenium get all img tags and take src attribute. Download src of image using:

using (var client = new WebClient())
{
    client.DownloadFile("http://example.com/file/song/a.mpeg", "a.mpeg");
}
Maciej Pulikowski
  • 2,457
  • 3
  • 15
  • 34