package com.ggasoftware.jdi_ui_tests.elements.interfaces.common;

import com.ggasoftware.jdi_ui_tests.elements.interfaces.base.IElement;
import com.ggasoftware.jdi_ui_tests.elements.interfaces.base.IHasValue;
import com.ggasoftware.jdi_ui_tests.elements.page_objects.annotations.JDIAction;

/**
 * Created by Roman_Iovlev on 6/10/2015.
 */
public interface IText extends IHasValue, IElement {
    /** Get element’s text */
    String getText();
    /** Wait while element’s text contains expected text. Returns element’s text */
    @JDIAction
    String waitText(String text);
    /** Wait while element’s text matches regEx. Returns element’s text */
    @JDIAction
    String waitMatchText(String regEx);
}
