package cz.moneta.test.dsl.ib.cards;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.dsl.ib.components.MainMenu;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.cards.AdditionalServicesPage.OVERVIEW_ADDITIONAL_SERVICES_PAGE_NAME;
import static cz.moneta.test.dsl.ib.cards.AdditionalServicesPage.SERVICES_TABLE;

@Wait({OVERVIEW_ADDITIONAL_SERVICES_PAGE_NAME, SERVICES_TABLE})
public interface AdditionalServicesPage extends IbPageFlow<AdditionalServicesPage>, CardsVerticalMenu, MainMenu {
    String OVERVIEW_ADDITIONAL_SERVICES_PAGE_NAME = "//img[@alt='Přehled doplňkových služeb']";
    String SERVICES_TABLE = "//table[@id='cardServices_2_5']";
    String EXHAUSTED_AMOUNT_INSURANCE_XPATH = "//tr[@id='a1']";

    @Wait(value = SERVICES_TABLE, explicitWaitSeconds = 20)
    AdditionalServicesPage waitToAdditional();

}
