I am writing tests for a web App using selenium webDriver and came across a scenario where when I try to close the browser I get a popup saying \"Are you sure? The page is a
Put one of these before the click event:
selenium.chooseCancelOnNextConfirmation() selenium.chooseOkOnNextConfirmation()