Selenium testing with checksums (md5)
- by Peter
I am new at selenium testing and am writing a bunch of tests for a webpage that relies heavily on javascript user interaction.
At first I wrote a lot of assertions of the style
If I press button A" then
assert number of visible rows = x,
assert checkboxes checked are such
assert title = bar
.... [20 more]
and so on.
Then I switched to checksumming the HTML using MD5:
If I press button A" then
assert md5(html) = 8548bccac94e35d9836f1fec0da8115c.
And it made my life a whole lot easier...
But is this a bad practice in any way?