package com.atlassian.webdriver.bitbucket.element;


import com.atlassian.pageobjects.elements.PageElement;
import com.atlassian.pageobjects.elements.WebDriverLocatable;
import com.atlassian.pageobjects.elements.timeout.TimeoutType;
import org.openqa.selenium.By;

public class AuiMessage extends LegacyElementPageObject {

    public AuiMessage(PageElement messageContainer) {
        super(messageContainer);
    }

    public AuiMessage(By locator) {
        super(locator);
    }

    public AuiMessage(By locator, TimeoutType timeoutType) {
        super(locator, timeoutType);
    }

    public AuiMessage(By locator, WebDriverLocatable parent) {
        super(locator, parent);
    }

    public AuiMessage(By locator, WebDriverLocatable parent, TimeoutType timeoutType) {
        super(locator, parent, timeoutType);
    }

    public AuiMessage(WebDriverLocatable locatable, TimeoutType timeoutType) {
        super(locatable, timeoutType);
    }

    public String getMessage() {
        return getText();
    }
}
