How to implement AlertEventListener in Python?

There is a way to implement it in Java by using AlertEventListener. However, It would be great to support selenium AlertEventListener in Appium-Python-Client.

AlertEventListener in java-client


public class AlertListener implements AlertEventListener {


AbstractEventListener in selenium

class AbstractEventListener(object):

def before_navigate_to(self, url, driver):

def after_navigate_to(self, url, driver):

I couldn’t find any method like after_alert_accept() or before_alert_accept() in the AbstractEventListener.