All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.epam.jdi.uitests.win.winnium.elements.common.Button Maven / Gradle / Ivy

The newest version!
package com.epam.jdi.uitests.win.winnium.elements.common;

import com.epam.jdi.uitests.core.interfaces.common.IButton;
import com.epam.jdi.uitests.win.winnium.elements.base.Element;
import com.epam.jdi.uitests.win.winnium.elements.base.managers.AttributeTextManager;
import com.epam.jdi.uitests.win.winnium.elements.base.managers.ClickableManager;
import org.openqa.selenium.By;

public class Button extends Element implements IButton {
    private ClickableManager clickableManager = new ClickableManager(this);
    private AttributeTextManager textFromAttribute = new AttributeTextManager(this);

    public Button() {}
    public Button(By locator) { setLocator(locator);}

    @Override
    public String getText() {
        return textFromAttribute.getText();
    }

    @Override
    public String getValue() {
        return textFromAttribute.getValue();
    }

    @Override
    public String waitText(String text) {
        return textFromAttribute.waitText(text);
    }

    @Override
    public String waitMatchText(String regEx) {
        return textFromAttribute.waitMatchText(regEx);
    }

    @Override
    public void click() {
        clickableManager.click();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy