package cz.moneta.test.dsl.ufo.banka.pages.fon;

import cz.moneta.test.dsl.ufo.banka.pages.common.pages.TIS004_S002_SignerSelectionPage;
import cz.moneta.test.dsl.ufo.banka.pages.fop.TIS005_S002_SignerSelectionPoPage;
import cz.moneta.test.dsl.ufo.banka.pages.main.PSP004_S001_PrintPage;
import cz.moneta.test.dsl.ufo.banka.pages.po.TIS005_S001_SignerSelectionPoPage;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Lookup;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.ufo.banka.pages.fon.GDP001_S001_ClientConsentsPage.*;

@Wait(value = GDP001_S001_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 80)
@Wait(value = {CONSENT1_RADIO, CONSENT2_RADIO, CONSENT3_RADIO, CONTINUE_BUTTON}, waitSecondsForElement = 80)
public interface GDP001_S001_ClientConsentsPage extends WebFlow<GDP001_S001_ClientConsentsPage> {
    String GDP001_S001_PAGE_LABEL_XPATH = "//div[text()='GDP001_S001']";
    String CONSENT1_RADIO = "GDP001_S001_R001_1";
    String CONSENT2_RADIO = "GDP001_S001_R002_1";
    String CONSENT3_RADIO = "GDP001_S001_R003_1";
    String CONSENT4_RADIO = "GDP001_S001_R004_1";
    String CONTINUE_BUTTON = "GDP001_S001_B003";

    @Click(CONSENT1_RADIO)
    @Click(CONSENT2_RADIO)
    @Click(CONSENT3_RADIO)
    @Click(CONSENT4_RADIO)
    @Wait(CONTINUE_BUTTON)
    @Click(CONTINUE_BUTTON)
    TIS050_S001_SignerSelectionPage clickOnConsentsAndContinue();

    @Click(CONSENT1_RADIO)
    @Click(CONSENT2_RADIO)
    @Click(CONSENT3_RADIO)
    @Click(CONSENT4_RADIO)
    @Click(CONTINUE_BUTTON)
    TIS005_S002_SignerSelectionPoPage clickOnFopConsentsAndContinue();

    @Click(CONSENT1_RADIO)
    @Click(CONSENT2_RADIO)
    @Click(CONSENT3_RADIO)
    @Click(CONSENT4_RADIO)
    @Wait(CONTINUE_BUTTON)
    @Click(CONTINUE_BUTTON)
    TIS004_S002_SignerSelectionPage clickOnConsents2AndContinue();

    @Click(CONSENT1_RADIO)
    @Click(CONSENT2_RADIO)
    @Click(CONSENT4_RADIO)
    @Click(CONTINUE_BUTTON)
    PSP004_S001_PrintPage clickOnFop2ConsentsAndContinue();

    @Click(CONSENT1_RADIO)
    @Click(CONSENT2_RADIO)
    @Click(CONTINUE_BUTTON)
    TIS005_S001_SignerSelectionPoPage clickOnPoConsentsAndContinueToSignerSelectionPoPage();

    @Click(CONSENT1_RADIO)
    @Click(CONSENT2_RADIO)
    @Click(CONSENT4_RADIO)
    @Click(CONTINUE_BUTTON)
    TIS004_S002_SignerSelectionPage clickOnFonConsentsAndContinue();

    @Click(CONSENT1_RADIO)
    @Click(CONSENT2_RADIO)
    @Click(CONSENT4_RADIO)
    @Click(CONTINUE_BUTTON)
    TIS050_S002_SignerSelectionPage clickContinueToSignerSelectionPage();
}