Automated generation of visual web tests from DOM-based web tests