MDL-47588 behat_general: Get chrome switching to main window in behat