package cz.moneta.test.dsl.ufo.cb.landing;

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

import static cz.moneta.test.dsl.ufo.cb.landing.DMS401_S004_DocumentDetailPage.NOTES_TEXT_AREA;

@Wait(value = NOTES_TEXT_AREA, until = Until.VISIBLE)
public interface DMS401_S004_DocumentDetailPage extends WebFlow<DMS401_S004_DocumentDetailPage> {

    String NOTES_TEXT_AREA = "DMS401_S004_M001";
    String SAVE_BUTTON = "DMS401_S004_B007";

    @TypeInto(value = NOTES_TEXT_AREA)
    DMS401_S004_DocumentDetailPage typeDocumentNotes(String notes);

    @Click(value = SAVE_BUTTON, andWait = @Wait(NOTES_TEXT_AREA))
    DMS401_S004_DocumentDetailPage clickSaveNotes();

    @CheckElementPresent(NOTES_TEXT_AREA)
    DMS401_S004_DocumentDetailPage checkElementNotes();
}
