package cz.moneta.test.dsl.ib.account.saving;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.dsl.ib.components.MainMenu;
import cz.moneta.test.dsl.ib.components.SavingMenu;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.account.saving.CancelSavingAccountEnteringPage.FIRST_STEP_IN_PROGRESS_IMG;
import static cz.moneta.test.dsl.ib.account.saving.CancelSavingAccountEnteringPage.NAME_PAGE_XPATH;

@Wait({NAME_PAGE_XPATH, FIRST_STEP_IN_PROGRESS_IMG})
public interface CancelSavingAccountEnteringPage extends IbPageFlow<CancelSavingAccountEnteringPage>, MainMenu, SavingMenu {
    String NAME_PAGE_XPATH = "//img[@alt='Zrušení spořicícho účtu']";
    String FIRST_STEP_IN_PROGRESS_IMG = "//img[@src='images_new/top_step1.gif']";
    String CONTINUE_BUTTON = "//img[@alt='Pokračovat']";

    @Click(CONTINUE_BUTTON)
    CancelSavingAccountCheckPage clickToContinueButton();
}