code: def accept(self):
          
          if self.driver.w3c:
              self.driver.execute(Command.W3C_ACCEPT_ALERT)
          else:
              self.driver.execute(Command.ACCEPT_ALERT)
docs: Accepts the alert available.
  
          Usage::
          Alert(driver).accept() # Confirm a alert dialog.