code: def text(self):
          
          if self.driver.w3c:
              return self.driver.execute(Command.W3C_GET_ALERT_TEXT)["value"]
          else:
              return self.driver.execute(Command.GET_ALERT_TEXT)["value"]
docs: Gets the text of the Alert.