protected Response execute(String driverCommand, Map<String, ?> parameters) {
if (currentAlert != null) {
if (!alertWhiteListedCommands.contains(driverCommand)) {
((FirefoxTargetLocator) switchTo()).alert()
.dismiss();
throw new UnhandledAlertException(driverCommand.toString());
}
}
Response response = super.execute(driverCommand, parameters);