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.TransferOfFoundsMainPage.*;

@Wait({PAGE_ID, IMG_NAME_OF_PAGE, IMG_CHOOSE_BUTTON})
public interface TransferOfFoundsMainPage extends IbPageFlow<TransferOfFoundsMainPage>, MainMenu, SavingMenu {
    String PAGE_ID = "//div[@id='parentform']";
    String IMG_NAME_OF_PAGE = "//img[@alt='Převod prostředků']";
    String IMG_CHOOSE_BUTTON = "//div[@id='tdsoTran']//img[@alt='Zvolit žádost']";

    @Click(IMG_CHOOSE_BUTTON)
    TransferOfFoundsEnteringPage clickToChooseButton();
}
