fixed #2400 - autoAcceptAlerts. Added tests
Merge pull request #2441 from Jonahss/autoAcceptAlert

Auto accept alert