Also remove few more unnecessary steps that redirects behat to site home page to actually get to the course. Part of MDL-55611 epic.
Part of MDL-55611 epic.
Restart session after a scenario with switch window is finished. This will close all open browser windows and open a new browser window