Dismiss the alert dialog when running by automation framework.

dismissing a alert dialog.
This should just be `if (!_config.autorun) {`. Fix that and then I'll merge it!