com.applitools.eyes.TextTrigger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eyes-sdk-java-jersey1_17-sf2_51_0 Show documentation
Show all versions of eyes-sdk-java-jersey1_17-sf2_51_0 Show documentation
Applitools Eyes SDK base for Java
/*
* Applitools SDK for Selenium integration.
*/
package com.applitools.eyes;
import com.applitools.utils.ArgumentGuard;
/**
* Encapsulates a text input by the user.
*/
class TextTrigger extends Trigger {
private String text;
// Can be null.
private Region control;
public TextTrigger(Region control, String text) {
ArgumentGuard.notNull(control, "control");
ArgumentGuard.notNullOrEmpty(text, "text");
this.text = text;
this.control = control;
}
public String getText() {
return text;
}
public Region getControl() {
return control;
}
public TriggerType getTriggerType() {
return TriggerType.Text;
}
@Override
public String toString() {
return String.format("Text [%s] %s", control, text);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy