com.shaft.dsl.gui.TextBox Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SHAFT_ENGINE Show documentation
Show all versions of SHAFT_ENGINE Show documentation
SHAFT is a unified test automation engine. Powered by best-in-class frameworks, SHAFT provides a
wizard-like syntax to drive your automation efficiently, maximize your ROI, and minimize your learning curve.
Stop reinventing the wheel. Upgrade now!
package com.shaft.dsl.gui;
import com.shaft.validation.Validations;
import org.openqa.selenium.By;
@SuppressWarnings("unused")
public class TextBox extends Element {
public TextBox(By locator) {
super(locator);
}
public void type(String input) {
elementActions.type(locator, input);
}
public String getPlaceholder() {
return elementActions.getAttribute(locator, "placeholder");
}
public void shouldHavePlaceholderText(String placeholderText) {
Validations.assertThat().object(getPlaceholder()).isEqualTo(placeholderText).perform();
}
}