package cz.moneta.test.dsl.ufo.cb.landing.proposal.pages;

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

@Wait(value = {KOM425_S001_BasicCompanyInformation.HISTORY_AREA, KOM425_S001_BasicCompanyInformation.NEXT_PAGE_BUTTON}, until = Until.VISIBLE)
public interface KOM425_S001_BasicCompanyInformation extends WebFlow<KOM425_S001_BasicCompanyInformation> {
    String HISTORY_AREA = "KOM425_S001_M006";
    String DONE_BUTTON = "KOM425_S001_H002_1";
    String CHECKED_DONE_BUTTON = "//input[@name='KOM425_S001_H002' and @value='1']";
    String COMPANY_HISTORY = "KOM425_S001_M006";
    String CURRENT_STATE = "KOM425_S001_M005";
    String SAVE_BUTTON = "KOM425_S001_B001";
    String NEXT_PAGE_BUTTON = "KOM425_S001_S001";

    @Click(value = DONE_BUTTON, andWait = @Wait(value = CHECKED_DONE_BUTTON, by = Lookup.XPATH))
    KOM425_S001_BasicCompanyInformation clickDoneButton();

    @TypeInto(value = COMPANY_HISTORY, clear = true)
    KOM425_S001_BasicCompanyInformation fillCompanyHistory(String description);

    @TypeInto(value = CURRENT_STATE, clear = true)
    KOM425_S001_BasicCompanyInformation fillCurrentState(String description);

    @Click(value = SAVE_BUTTON)
    KOM425_S001_BasicCompanyInformation clickSaveButton();

    @Click(NEXT_PAGE_BUTTON)
    KOM446_S001_ResourcesMoneta clickNextPage();
}
