Bugfix: selenium tests fail when its window is not in focus