package cz.moneta.test.dsl.ufo.operations.shared.topmenu;

import cz.moneta.test.dsl.ufo.operations.ufoOperations.ZKU704_S001_ChangeContactData;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.operations.shared.SharedElements.LOAD_IMG_DIV_CLASS;

public interface XXX702_SharedClientMenu<T extends WebFlow<T>> extends XXX702_Requirements<T> {

    String REQUIREMENT_BUTTON_XPATH = "//button[contains(@title, '[XXX702_T001_I015]')]";

    String CHANGE_CONTACT_DATA_BUTTON = "XXX702_T001_P047";

    @Wait(value = REQUIREMENT_BUTTON_XPATH, by = Lookup.XPATH, until = Until.CLICKABLE)
    @Click(value = REQUIREMENT_BUTTON_XPATH, by = Lookup.XPATH, andWait = @Wait(value = LOAD_IMG_DIV_CLASS, by = Lookup.CLASSNAME, until = Until.GONE))
    XXX702_Requirements<T> menuClickRequirements();

    @Wait(value = LOAD_IMG_DIV_CLASS, by = Lookup.CLASSNAME, until = Until.GONE)
    @Click(CHANGE_CONTACT_DATA_BUTTON)
    ZKU704_S001_ChangeContactData menuClickChangeContactData();

}