Selenium WebDriver : How to handle JavaScript alerts and Prompts