package cz.moneta.test.dsl.monetaportal.savings.childbuildingsavings;

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

import static cz.moneta.test.dsl.monetaportal.savings.childbuildingsavings.ContinueOnMobilePage.PAGE_HEADER;
import static cz.moneta.test.dsl.monetaportal.savings.childbuildingsavings.ContinueOnMobilePage.QR_CODE;

@Waits({@Wait(PAGE_HEADER), @Wait(QR_CODE)})
public interface ContinueOnMobilePage extends ChildBuildingSavingsPageFlow<ContinueOnMobilePage> {
    String PAGE_HEADER = "//h2[text()='Pokračujte na mobilním telefonu']";
    String QR_CODE = "//div/*[@height]/*[@fill]/following-sibling::*[@fill and string-length(@d) > 0]";

    PermanentAddressPage onPermanentAddress();
}
