def set_alert_callback(self, callback):
if callable(callable):<EOL><INDENT>self.http.alert_callback = functools.partial(callback, self)<EOL><DEDENT>else:<EOL><INDENT>self.http.alert_callback = None<EOL><DEDENT>
Args:
    callback (func): called when alert popup

Example of callback:

    def callback(session):
        session.alert.accept()