package cz.moneta.test.dsl.ib.cards.application;

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

import static cz.moneta.test.dsl.ib.cards.application.ApplicationFinishingPage.PAGE_NAME;


@Wait(PAGE_NAME)
public interface ApplicationFinishingPage extends IbPageFlow<ApplicationFinishingPage>,
        MobileKeyConfirmation<ApplicationFinishingPage> {

    String PAGE_NAME = "//b[text()='Vaše žádost o kreditní kartu byla úspěšně odeslaná ke schválení. O jeho výsledku']";
    String CONTINUE_BUTTON = "//*[@id=\"mainFrm\"]/table[4]/tbody/tr/td[2]/img";

    @Click(CONTINUE_BUTTON)
    ApplicationFinishingPage onApplicationFinisingPage();

    @Click("//*[@id=\"creditCardNew_2_9\"]/tbody/tr/td/table[3]/tbody/tr/td/a/img")
    ApplicationsOverviewPage continueToApplicationOvereview();
}
