Visual validation
I've never been a strong proponent of visual validation (the practice of using code to check if something that you are looking at on screen is what should be displayed on screen). It’s something I have tried in the past and it never really seemed to live up to the hype. The idea of being able to take a screenshot of a site and then compare it to a known good copy sounds great, but the reality was always underwhelming.
In the past, I have diligently written code to take screenshots and then do a pixel-by-pixel comparison to see if they match. The problem was they very rarely did: variables such as different machines running at different resolutions came into play, slightly different rendering engines could result in color ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access