Cancel is clicked in Controlled by software mode

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.

2 Likes