Added a method to accept the currently displayed alert dialog

If this PR is accepted we should probably add the method to the DriverInterface