def METHOD_NAME(self) -> Alert:
    """Switches focus to an alert on the page.
    :Usage:
        ::
            alert = driver.switch_to.alert
    """
    METHOD_NAME = Alert(self._driver)
    _ = METHOD_NAME.text
    return METHOD_NAME