Automating evidence creation in checking tasks

Once I was given with task of checking network scenarios for SATURN models, where it was necesseary to check in the network definition files if specific road schemes were turned off. I was provided with htm export of side by side view network definition files and for each of these files check if the specific road scheme is turned off by having corresponding command in dat file commented out. Afterwards it was necessary to create evidence of checking by taking screenshot. Basically task could be decomposed into following steps:
1) Open htm file
2) Scroll down until road scheme is found
3) check if commended out
4) take a screenshot

This was neccesary to do for 80 htm files. Sounds like a good opportunity to automate such task!
Luckily there is a tool called Selenium Web driver that comes into hand.
For its application to this task check the python script below:

 The output of this script is collection of screenshots. The asterisk symbol in front of $Include command, symbolizes it’s commented out so in result the scheme is turned off.