package cz.moneta.test.dsl.payment_engine.login;

import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Lookup;
import cz.moneta.test.harness.support.web.TypeInto;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.payment_engine.login.PaymentEngineLoginPage.USER_NAME;

@Wait(value = USER_NAME, by = Lookup.ID)
public interface PaymentEngineLoginPage extends WebFlow<PaymentEngineLoginPage> {
    String USER_NAME = "username";
    String PASSWORD = "password";
    String LOGIN_BUTTON = "loginButton";

    @TypeInto(value = USER_NAME, by = Lookup.ID)
    @TypeInto(value = PASSWORD, by = Lookup.ID)
    @Click(value = LOGIN_BUTTON, by = Lookup.ID)
    InfoAboutFirstLoginPage login(String userName, String password);
}