Immediately after the action that causes the alert to appear, you MUST perform an action that deals with the alert.
If you do anything else (involving WebDriver, I believe) then WebDriver will handle the alert itself and issue an error.
Immediately after the action that causes the alert to appear, you MUST perform an action that deals with the alert.
If you do anything else (involving WebDriver, I believe) then WebDriver will handle the alert itself and issue an error.