package cz.moneta.test.dsl.ufo.banka.pages.products.one.click;

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

import static cz.moneta.test.dsl.ufo.banka.pages.products.one.click.BAL024_S001_OneClickPage.*;
import static cz.moneta.test.dsl.ufo.operations.shared.SharedElements.LOAD_IMG_DIV_CLASS;

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

    String CONTINUE_BUTTON = "BAL024_S001_B002";
    String PRODUCT_TYPE_SELECT = "BAL024_S001_C001";
    String CARD_TYPE_SELECT = "BAL024_S001_C004";
    String AGREE_BUTTON = "BAL024_S001_B003";

    @Select(value = PRODUCT_TYPE_SELECT, andWait = @Wait(value = LOAD_IMG_DIV_CLASS, by = Lookup.CLASSNAME, until = Until.GONE, waitSecondsForElement = 60))
    BAL024_S001_OneClickPage selectProductType(String productType);

    @Select(value = CARD_TYPE_SELECT, andWait = @Wait(value = LOAD_IMG_DIV_CLASS, by = Lookup.CLASSNAME, until = Until.GONE, waitSecondsForElement = 60))
    BAL024_S001_OneClickPage selectCardType(String productType);

    @Click(AGREE_BUTTON)
    BAL024_S001_OneClickPage clickAgree();

    @Click(CONTINUE_BUTTON)
    BAL024_S001_OneClickPageTransitions clickContinue();
}
