package cz.moneta.test.dsl.ufo.banka.pages.products.debit.card;

import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.banka.pages.products.debit.card.SIF004_S001_ContactSettingsForSendingEmailsPage.*;
import static cz.moneta.test.dsl.ufo.operations.shared.SharedElements.LOAD_IMG_DIV_CLASS;

@Wait(value = SIF004_S001_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 60)
public interface SIF004_S001_ContactSettingsForSendingEmailsPage extends WebFlow<SIF004_S001_ContactSettingsForSendingEmailsPage> {
    String SIF004_S001_PAGE_LABEL_XPATH = "//div[text()='SIF004_S001']";

    String EMAIL_FROM_CIF_BUTTON = "SIF004_S001_B002";
    String PHONE_FROM_CIF_BUTTON = "SIF004_S001_B003";
    String CONTINUE_BUTTON = "SIF004_S001_B006";

    @Click(value = EMAIL_FROM_CIF_BUTTON, andWait = @Wait(value = LOAD_IMG_DIV_CLASS, by = Lookup.CLASSNAME, until = Until.GONE, waitSecondsForElement = 60))
    SIF004_S001_ContactSettingsForSendingEmailsPage clickFillEmailFromCif();

    @Click(value = PHONE_FROM_CIF_BUTTON, andWait = @Wait(value = LOAD_IMG_DIV_CLASS, by = Lookup.CLASSNAME, until = Until.GONE, waitSecondsForElement = 60))
    SIF004_S001_ContactSettingsForSendingEmailsPage clickFillPhoneFromCif();

    @Click(CONTINUE_BUTTON)
    SIF004_S001_ContactSettingsForSendingEmailsPageTransitions clickContinue();
}
