package cz.moneta.test.dsl.ufo.operations.ufoOperations;

import cz.moneta.test.dsl.ufo.operations.shared.SharedElements;
import cz.moneta.test.harness.support.web.*;

public interface EXE704_S001_CancelPaymentOrderPage extends WebFlow<EXE704_S001_CancelPaymentOrderPage> {

    String OK_BUTTON = "EXE704_S001_B002";
    String FIRST_TRANSACTION_CANCEL_BUTTON = "EXE704_S001_P003-1";
    String ID_TRANSACTION = "EXE704_S001_U003";

    @Click(value = OK_BUTTON, andWait = @Wait(value = SharedElements.LOAD_IMG_DIV_CLASS, by = Lookup.CLASSNAME, until = Until.GONE))
    EXE704_S001_CancelPaymentOrderPage clickOkButton();

    @Click(value = FIRST_TRANSACTION_CANCEL_BUTTON, andWait = @Wait(value = SharedElements.LOAD_IMG_DIV_CLASS, by = Lookup.CLASSNAME, until = Until.GONE))
    EXE704_S001_CancelationPaymentOrder clickCancelButton();

    @TypeInto(ID_TRANSACTION)
    EXE704_S001_CancelPaymentOrderPage fillIdTransaction(String idTransaction);

}
