com.epam.jdi.uitests.win.winnium.elements.common.Button Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdi-uitest-win Show documentation
Show all versions of jdi-uitest-win Show documentation
Epam UI Automation framework package for Windows
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