package cz.moneta.test.dsl.exevido.pages;

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

import static cz.moneta.test.dsl.exevido.pages.LoginPage.PAGE_LOGO;

@Wait(value = PAGE_LOGO, by = Lookup.XPATH)
public interface LoginPage extends WebFlow<LoginPage> {

    String PAGE_LOGO = "//img[@alt='Exevido']";
    String USERNAME = "username";
    String PASSWORD = "password";
    String LOGIN_BUTTON = "login";

    @TypeInto(value = USERNAME, clear = true)
    LoginPage fillUsername(String username);

    @TypeInto(value = PASSWORD, clear = true)
    LoginPage fillPassword(String password);

    @Click(LOGIN_BUTTON)
    IncomingMessagesPage clickLogin();

}