def step_impl(context): alert = world.get_alert_when_exist() if alert is not None: alert.dismiss() else: log.failed("Fail to cancel popup alert")
def step_impl(context): alert = world.get_alert_when_exist() if alert is not None: alert.accept() else: log.failed("Fail to accept popup alert")
def step_impl(context, value): value = world.replace_variables(value) alert = world.get_alert_when_exist() if alert is None: log.failed("The popup alert not visible") if alert.text == value: return True else: log.failed("Verify popup message is?", alert.text, value)