package cz.moneta.test.dsl.ufo.banka.pages.products.universal.request;

import cz.moneta.test.dsl.ufo.banka.pages.loans.CAS001_S001_ScoringPage;
import cz.moneta.test.harness.support.web.Click;
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.products.universal.request.UZO001_S003_SigningByTheApplicant.APPLICANT_CHECKBOX;

@Wait(value = APPLICANT_CHECKBOX, waitSecondsForElement = 60)
public interface UZO001_S003_SigningByTheApplicant extends WebFlow<UZO001_S003_SigningByTheApplicant> {

    String PAGE_ID_XPATH = "//div[text()=' UZO001_S003']";
    String APPLICANT_CHECKBOX = "UZO001_S003_G001-0";
    String SECOND_APPLICANT_CHECKBOX = "UZO001_S003_G001-1";
    String YES_BUTTON = "UZO001_S003_B001";

    @Click(APPLICANT_CHECKBOX)
    UZO001_S003_SigningByTheApplicant clickApplicantCheckbox();

    @Click(SECOND_APPLICANT_CHECKBOX)
    UZO001_S003_SigningByTheApplicant clickSecondApplicantCheckbox();

    @Click(YES_BUTTON)
    CAS001_S001_ScoringPage clickYesButton();

}
