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

com.shaft.dsl.gui.TextBox Maven / Gradle / Ivy

Go to download

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!

There is a newer version: 8.2.20240402
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy