selenium-webdriver Error Handling in Automation using Selenium