fix flakey test (for IE)

frame isn't guaranteed to be loaded immediately