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.
Asked
Active
Viewed 2,167 times
-1
-
3And what is your question? – Vulpex Mar 16 '18 at 08:44
-
You mean pixel by pixel comparison? – M. Adeel Khalid Mar 16 '18 at 08:47
1 Answers
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