Adjust timeouts in waitsFor from seconds-based to msec-based.