deactivate window before screenshot as requested in styleguide