fix: Android tests don't hang up

Need to look into this more as I am resorting to DOM parsing to
verify when Android tests have stopped running since selenium on
Android doesn't expose a global window object or something.