Turn web page test base into class that can be used with composition