Dismisses the alert available.

def dismiss(self):
        """
        Dismisses the alert available.
        """
        if self.driver.w3c:
            self.driver.execute(Command.W3C_DISMISS_ALERT)
        else:
            self.driver.execute(Command.DISMISS_ALERT)