Java Script Alerts - accept, dismiss, sendkeys & getText
1. Use accept() to accept the alert (i.e, Click OK)
2. Use dismiss() to dismiss the alert (i.e, Click Cancel)
3. Use sendkeys() to type any value in alert box
4. Use getText() to get the alert box text - returns String
Handle alert popup (Sweet alerts)
Sweet alert are nothing but the popup which appears on the screen, this can be treated
as normal WebElement & use click method to handle it