Allow screenshot tests to execute JavaScript before capturing screenshots.