def test_alert(self): calculator = Calulator(self.driver) calculator.trigger_alert() assert calculator.is_visible(calculator.alert)