What can cause UnhandledAlertException errors?
You can try this code to supress the alerts :
DesiredCapabilities dc=new DesiredCapabilities();dc.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR,UnexpectedAlertBehaviour.ACCEPT);driver =new FirefoxDriver(dc);