Wait for element to become visible before pressing F11.

Want to see if this fixes the issue in https://travis-ci.org/web-animations/web-animations-js/jobs/9926098